diff options
author | Dou Liyang <douly.fnst@cn.fujitsu.com> | 2017-11-08 05:09:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-11-10 04:02:08 -0500 |
commit | 120fc3fbb7787fb70240190cc9c113d1f6523c42 (patch) | |
tree | 23996e05fc326ef305eb91057ab440fc29720c0a /arch/x86/kernel/tsc.c | |
parent | b3270a5210229ee543339d34b74ba527f978c55b (diff) |
x86/tsc: Mark cyc2ns_init() and detect_art() __init
These two functions are only called by tsc_init(), which is an __init
function during boot time, so mark them __init as well.
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1510135792-17429-1-git-send-email-douly.fnst@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/tsc.c')
-rw-r--r-- | arch/x86/kernel/tsc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index f1326c0422c1..416de29fe862 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c | |||
@@ -112,7 +112,7 @@ static void cyc2ns_data_init(struct cyc2ns_data *data) | |||
112 | data->cyc2ns_offset = 0; | 112 | data->cyc2ns_offset = 0; |
113 | } | 113 | } |
114 | 114 | ||
115 | static void cyc2ns_init(int cpu) | 115 | static void __init cyc2ns_init(int cpu) |
116 | { | 116 | { |
117 | struct cyc2ns *c2n = &per_cpu(cyc2ns, cpu); | 117 | struct cyc2ns *c2n = &per_cpu(cyc2ns, cpu); |
118 | 118 | ||
@@ -955,7 +955,7 @@ core_initcall(cpufreq_register_tsc_scaling); | |||
955 | /* | 955 | /* |
956 | * If ART is present detect the numerator:denominator to convert to TSC | 956 | * If ART is present detect the numerator:denominator to convert to TSC |
957 | */ | 957 | */ |
958 | static void detect_art(void) | 958 | static void __init detect_art(void) |
959 | { | 959 | { |
960 | unsigned int unused[2]; | 960 | unsigned int unused[2]; |
961 | 961 | ||