projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e38da3
)
clocksource/drivers/arm_arch_timer:: Mark cyclecounter __ro_after_init
author
Bhumika Goyal
<
[email protected]
>
Sat, 11 Feb 2017 19:20:18 +0000
(
00:50
+0530)
committer
Thomas Gleixner
<
[email protected]
>
Sat, 11 Feb 2017 20:39:04 +0000
(21:39 +0100)
The object cyclecounter of type cyclecounter is only modified during
initialization in arch_counter_register. So it can be marked
__ro_after_init.
Signed-off-by: Bhumika Goyal <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Thomas Gleixner <
[email protected]
>
drivers/clocksource/arm_arch_timer.c
patch
|
blob
|
history
diff --git
a/drivers/clocksource/arm_arch_timer.c
b/drivers/clocksource/arm_arch_timer.c
index 7b06aef838369057580f0af98d4184983cf5e0fe..93aa1364376ac8d94145b7dca83240413d080517 100644
(file)
--- a/
drivers/clocksource/arm_arch_timer.c
+++ b/
drivers/clocksource/arm_arch_timer.c
@@
-646,7
+646,7
@@
static struct clocksource clocksource_counter = {
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
};
-static struct cyclecounter cyclecounter = {
+static struct cyclecounter cyclecounter
__ro_after_init
= {
.read = arch_counter_read_cc,
.mask = CLOCKSOURCE_MASK(56),
};