projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddd8afa
)
x86/tsc: Make __use_tsc __ro_after_init
author
Valentin Schneider
<vschneid@redhat.com>
Wed, 13 Mar 2024 18:01:06 +0000
(19:01 +0100)
committer
Ingo Molnar
<mingo@kernel.org>
Fri, 22 Mar 2024 10:18:20 +0000
(11:18 +0100)
__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
arch/x86/kernel/tsc.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/tsc.c
b/arch/x86/kernel/tsc.c
index 5a69a49acc963f067675a1934ac5fde0ad56e95a..0f7624ed1d1d09dc8ca80e8d266e10ee0852e4e0 100644
(file)
--- a/
arch/x86/kernel/tsc.c
+++ b/
arch/x86/kernel/tsc.c
@@
-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;