diff options
| -rw-r--r-- | arch/x86/kernel/tsc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 599e58168631..9c8b71531ca8 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c | |||
| @@ -17,20 +17,21 @@ | |||
| 17 | #include <asm/delay.h> | 17 | #include <asm/delay.h> |
| 18 | #include <asm/hypervisor.h> | 18 | #include <asm/hypervisor.h> |
| 19 | 19 | ||
| 20 | unsigned int cpu_khz; /* TSC clocks / usec, not used here */ | 20 | unsigned int __read_mostly cpu_khz; /* TSC clocks / usec, not used here */ |
| 21 | EXPORT_SYMBOL(cpu_khz); | 21 | EXPORT_SYMBOL(cpu_khz); |
| 22 | unsigned int tsc_khz; | 22 | |
| 23 | unsigned int __read_mostly tsc_khz; | ||
| 23 | EXPORT_SYMBOL(tsc_khz); | 24 | EXPORT_SYMBOL(tsc_khz); |
| 24 | 25 | ||
| 25 | /* | 26 | /* |
| 26 | * TSC can be unstable due to cpufreq or due to unsynced TSCs | 27 | * TSC can be unstable due to cpufreq or due to unsynced TSCs |
| 27 | */ | 28 | */ |
| 28 | static int tsc_unstable; | 29 | static int __read_mostly tsc_unstable; |
| 29 | 30 | ||
| 30 | /* native_sched_clock() is called before tsc_init(), so | 31 | /* native_sched_clock() is called before tsc_init(), so |
| 31 | we must start with the TSC soft disabled to prevent | 32 | we must start with the TSC soft disabled to prevent |
| 32 | erroneous rdtsc usage on !cpu_has_tsc processors */ | 33 | erroneous rdtsc usage on !cpu_has_tsc processors */ |
| 33 | static int tsc_disabled = -1; | 34 | static int __read_mostly tsc_disabled = -1; |
| 34 | 35 | ||
| 35 | static int tsc_clocksource_reliable; | 36 | static int tsc_clocksource_reliable; |
| 36 | /* | 37 | /* |
