projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e19b205
)
x86/numachip: Add const and __initconst to numachip2_clockevent
author
Bhumika Goyal
<bhumirks@gmail.com>
Tue, 29 Aug 2017 18:17:11 +0000
(23:47 +0530)
committer
Thomas Gleixner
<tglx@linutronix.de>
Mon, 25 Sep 2017 07:36:15 +0000
(09:36 +0200)
Make this const as it is only used during a copy operation and add
__initconst as this usage is during the initialization phase.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: julia.lawall@lip6.fr
Cc: daniel.lezcano@linaro.org
Link:
http://lkml.kernel.org/r/1504030631-10812-1-git-send-email-bhumirks@gmail.com
drivers/clocksource/numachip.c
patch
|
blob
|
history
diff --git
a/drivers/clocksource/numachip.c
b/drivers/clocksource/numachip.c
index
6a20dc8
..
9a7d7f0
100644
(file)
--- a/
drivers/clocksource/numachip.c
+++ b/
drivers/clocksource/numachip.c
@@
-43,7
+43,7
@@
static int numachip2_set_next_event(unsigned long delta, struct clock_event_devi
return 0;
}
-static
struct clock_event_device numachip2_clockeven
t = {
+static
const struct clock_event_device numachip2_clockevent __initcons
t = {
.name = "numachip2",
.rating = 400,
.set_next_event = numachip2_set_next_event,