diff options
Diffstat (limited to 'arch/i386/kernel/tsc.c')
-rw-r--r-- | arch/i386/kernel/tsc.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/i386/kernel/tsc.c b/arch/i386/kernel/tsc.c index b8fa0a8b2e47..1bbe45dca7a0 100644 --- a/arch/i386/kernel/tsc.c +++ b/arch/i386/kernel/tsc.c | |||
@@ -13,7 +13,6 @@ | |||
13 | 13 | ||
14 | #include <asm/delay.h> | 14 | #include <asm/delay.h> |
15 | #include <asm/tsc.h> | 15 | #include <asm/tsc.h> |
16 | #include <asm/delay.h> | ||
17 | #include <asm/io.h> | 16 | #include <asm/io.h> |
18 | 17 | ||
19 | #include "mach_timer.h" | 18 | #include "mach_timer.h" |
@@ -217,7 +216,7 @@ static unsigned int cpufreq_delayed_issched = 0; | |||
217 | static unsigned int cpufreq_init = 0; | 216 | static unsigned int cpufreq_init = 0; |
218 | static struct work_struct cpufreq_delayed_get_work; | 217 | static struct work_struct cpufreq_delayed_get_work; |
219 | 218 | ||
220 | static void handle_cpufreq_delayed_get(void *v) | 219 | static void handle_cpufreq_delayed_get(struct work_struct *work) |
221 | { | 220 | { |
222 | unsigned int cpu; | 221 | unsigned int cpu; |
223 | 222 | ||
@@ -306,7 +305,7 @@ static int __init cpufreq_tsc(void) | |||
306 | { | 305 | { |
307 | int ret; | 306 | int ret; |
308 | 307 | ||
309 | INIT_WORK(&cpufreq_delayed_get_work, handle_cpufreq_delayed_get, NULL); | 308 | INIT_WORK(&cpufreq_delayed_get_work, handle_cpufreq_delayed_get); |
310 | ret = cpufreq_register_notifier(&time_cpufreq_notifier_block, | 309 | ret = cpufreq_register_notifier(&time_cpufreq_notifier_block, |
311 | CPUFREQ_TRANSITION_NOTIFIER); | 310 | CPUFREQ_TRANSITION_NOTIFIER); |
312 | if (!ret) | 311 | if (!ret) |
@@ -349,8 +348,8 @@ static int tsc_update_callback(void) | |||
349 | int change = 0; | 348 | int change = 0; |
350 | 349 | ||
351 | /* check to see if we should switch to the safe clocksource: */ | 350 | /* check to see if we should switch to the safe clocksource: */ |
352 | if (clocksource_tsc.rating != 50 && check_tsc_unstable()) { | 351 | if (clocksource_tsc.rating != 0 && check_tsc_unstable()) { |
353 | clocksource_tsc.rating = 50; | 352 | clocksource_tsc.rating = 0; |
354 | clocksource_reselect(); | 353 | clocksource_reselect(); |
355 | change = 1; | 354 | change = 1; |
356 | } | 355 | } |
@@ -461,7 +460,7 @@ static int __init init_tsc_clocksource(void) | |||
461 | clocksource_tsc.shift); | 460 | clocksource_tsc.shift); |
462 | /* lower the rating if we already know its unstable: */ | 461 | /* lower the rating if we already know its unstable: */ |
463 | if (check_tsc_unstable()) | 462 | if (check_tsc_unstable()) |
464 | clocksource_tsc.rating = 50; | 463 | clocksource_tsc.rating = 0; |
465 | 464 | ||
466 | init_timer(&verify_tsc_freq_timer); | 465 | init_timer(&verify_tsc_freq_timer); |
467 | verify_tsc_freq_timer.function = verify_tsc_freq; | 466 | verify_tsc_freq_timer.function = verify_tsc_freq; |