diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-08-25 05:10:42 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-08-25 05:10:42 -0400 |
| commit | ea1c9de45ecb162841c9b4e0fa303a245d59b1c8 (patch) | |
| tree | 72ef1624d8a4c581ad94a84f38f941682562030b /arch/x86/kernel/tsc.c | |
| parent | 4e1d112cac08049e764fe3c4f6d3ec92529f9f68 (diff) | |
| parent | a2bd7274b47124d2fc4dfdb8c0591f545ba749dd (diff) | |
Merge branch 'x86/urgent' into x86/cleanups
Diffstat (limited to 'arch/x86/kernel/tsc.c')
| -rw-r--r-- | arch/x86/kernel/tsc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 46af71676738..9bed5cae4bdc 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c | |||
| @@ -325,6 +325,10 @@ static struct notifier_block time_cpufreq_notifier_block = { | |||
| 325 | 325 | ||
| 326 | static int __init cpufreq_tsc(void) | 326 | static int __init cpufreq_tsc(void) |
| 327 | { | 327 | { |
| 328 | if (!cpu_has_tsc) | ||
| 329 | return 0; | ||
| 330 | if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) | ||
| 331 | return 0; | ||
| 328 | cpufreq_register_notifier(&time_cpufreq_notifier_block, | 332 | cpufreq_register_notifier(&time_cpufreq_notifier_block, |
| 329 | CPUFREQ_TRANSITION_NOTIFIER); | 333 | CPUFREQ_TRANSITION_NOTIFIER); |
| 330 | return 0; | 334 | return 0; |
