clocksource/drivers/arm_arch_timer: Add __ro_after_init and __init
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Tue, 30 Mar 2021 06:04:44 +0000 (14:04 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 8 Apr 2021 14:41:19 +0000 (16:41 +0200)
commite2bf384d4329bb478ad003eae1ab644756a42266
tree33cbefa3a3e68e05624130148fbcf7dd4450a5ea
parent25de4ce5ed02994aea8bc111d133308f6fd62566
clocksource/drivers/arm_arch_timer: Add __ro_after_init and __init

Some functions are not needed after booting, so mark them as __init
to move them to the .init section.

Some global variables are never modified after init, so can be
__ro_after_init.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210330140444.4fb2a7cb@xhacker.debian
drivers/clocksource/arm_arch_timer.c