diff options
| author | Bhumika Goyal <[email protected]> | 2017-02-11 19:20:18 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2017-02-11 20:39:04 +0000 |
| commit | 3d837bc01c2153565333b2ce71d613b6e7cc761c (patch) | |
| tree | 134712518664a639813bd1325cb6e7b1cc2fa5f7 /drivers/clocksource/arm_arch_timer.c | |
| parent | timerfd: Protect the might cancel mechanism proper (diff) | |
| download | kernel-3d837bc01c2153565333b2ce71d613b6e7cc761c.tar.gz kernel-3d837bc01c2153565333b2ce71d613b6e7cc761c.zip | |
clocksource/drivers/arm_arch_timer:: Mark cyclecounter __ro_after_init
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]>
Diffstat (limited to 'drivers/clocksource/arm_arch_timer.c')
| -rw-r--r-- | drivers/clocksource/arm_arch_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 7b06aef83836..93aa1364376a 100644 --- 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), }; |
