aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r--arch/i386/kernel/hpet.c2
-rw-r--r--arch/i386/kernel/tsc.c7
-rw-r--r--arch/i386/kernel/vmitime.c2
3 files changed, 7 insertions, 4 deletions
diff --git a/arch/i386/kernel/hpet.c b/arch/i386/kernel/hpet.c
index 0b29d41322a2..7d2739fff3a3 100644
--- a/arch/i386/kernel/hpet.c
+++ b/arch/i386/kernel/hpet.c
@@ -26,7 +26,7 @@ static struct clocksource clocksource_hpet = {
26 .mask = HPET_MASK, 26 .mask = HPET_MASK,
27 .mult = 0, /* set below */ 27 .mult = 0, /* set below */
28 .shift = HPET_SHIFT, 28 .shift = HPET_SHIFT,
29 .is_continuous = 1, 29 .flags = CLOCK_SOURCE_IS_CONTINUOUS,
30}; 30};
31 31
32static int __init init_hpet_clocksource(void) 32static int __init init_hpet_clocksource(void)
diff --git a/arch/i386/kernel/tsc.c b/arch/i386/kernel/tsc.c
index 0fd93107ff9a..a37654991788 100644
--- a/arch/i386/kernel/tsc.c
+++ b/arch/i386/kernel/tsc.c
@@ -314,7 +314,8 @@ static struct clocksource clocksource_tsc = {
314 .mult = 0, /* to be set */ 314 .mult = 0, /* to be set */
315 .shift = 22, 315 .shift = 22,
316 .update_callback = tsc_update_callback, 316 .update_callback = tsc_update_callback,
317 .is_continuous = 1, 317 .flags = CLOCK_SOURCE_IS_CONTINUOUS |
318 CLOCK_SOURCE_MUST_VERIFY,
318}; 319};
319 320
320static int tsc_update_callback(void) 321static int tsc_update_callback(void)
@@ -434,8 +435,10 @@ static int __init init_tsc_clocksource(void)
434 clocksource_tsc.mult = clocksource_khz2mult(current_tsc_khz, 435 clocksource_tsc.mult = clocksource_khz2mult(current_tsc_khz,
435 clocksource_tsc.shift); 436 clocksource_tsc.shift);
436 /* lower the rating if we already know its unstable: */ 437 /* lower the rating if we already know its unstable: */
437 if (check_tsc_unstable()) 438 if (check_tsc_unstable()) {
438 clocksource_tsc.rating = 0; 439 clocksource_tsc.rating = 0;
440 clocksource_tsc.flags &= ~CLOCK_SOURCE_IS_CONTINUOUS;
441 }
439 442
440 init_timer(&verify_tsc_freq_timer); 443 init_timer(&verify_tsc_freq_timer);
441 verify_tsc_freq_timer.function = verify_tsc_freq; 444 verify_tsc_freq_timer.function = verify_tsc_freq;
diff --git a/arch/i386/kernel/vmitime.c b/arch/i386/kernel/vmitime.c
index 2e2d8dbcbd68..76d2adcae5a3 100644
--- a/arch/i386/kernel/vmitime.c
+++ b/arch/i386/kernel/vmitime.c
@@ -115,7 +115,7 @@ static struct clocksource clocksource_vmi = {
115 .mask = CLOCKSOURCE_MASK(64), 115 .mask = CLOCKSOURCE_MASK(64),
116 .mult = 0, /* to be set */ 116 .mult = 0, /* to be set */
117 .shift = 22, 117 .shift = 22,
118 .is_continuous = 1, 118 .flags = CLOCK_SOURCE_IS_CONTINUOUS,
119}; 119};
120 120
121 121