diff options
Diffstat (limited to 'kernel/arch/x86/kernel/i8253.c')
-rw-r--r-- | kernel/arch/x86/kernel/i8253.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/arch/x86/kernel/i8253.c b/kernel/arch/x86/kernel/i8253.c index f2b96de3c..efb82f07b 100644 --- a/kernel/arch/x86/kernel/i8253.c +++ b/kernel/arch/x86/kernel/i8253.c @@ -34,7 +34,7 @@ static int __init init_pit_clocksource(void) * - when local APIC timer is active (PIT is switched off) */ if (num_possible_cpus() > 1 || is_hpet_enabled() || - i8253_clockevent.mode != CLOCK_EVT_MODE_PERIODIC) + !clockevent_state_periodic(&i8253_clockevent)) return 0; return clocksource_i8253_init(); |