mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
x86/tsc: Make __use_tsc __ro_after_init
__use_tsc is only ever enabled in __init tsc_enable_sched_clock(), so mark it as __ro_after_init. Signed-off-by: Valentin Schneider <vschneid@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Josh Poimboeuf <jpoimboe@kernel.org> Link: https://lore.kernel.org/r/20240313180106.2917308-5-vschneid@redhat.com
This commit is contained in:
parent
ddd8afacc4
commit
79a4567b2e
|
|
@ -44,7 +44,7 @@ EXPORT_SYMBOL(tsc_khz);
|
|||
static int __read_mostly tsc_unstable;
|
||||
static unsigned int __initdata tsc_early_khz;
|
||||
|
||||
static DEFINE_STATIC_KEY_FALSE(__use_tsc);
|
||||
static DEFINE_STATIC_KEY_FALSE_RO(__use_tsc);
|
||||
|
||||
int tsc_clocksource_reliable;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user