aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/timekeeping.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/timekeeping.c')
-rw-r--r--kernel/time/timekeeping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index b5673016089f..325a9b63265a 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -269,7 +269,7 @@ static void change_clocksource(void)
269 269
270 new = clocksource_get_next(); 270 new = clocksource_get_next();
271 271
272 if (clock == new) 272 if (!new || clock == new)
273 return; 273 return;
274 274
275 clocksource_forward_now(); 275 clocksource_forward_now();
@@ -446,7 +446,7 @@ void __init timekeeping_init(void)
446 446
447 ntp_init(); 447 ntp_init();
448 448
449 clock = clocksource_get_next(); 449 clock = clocksource_default_clock();
450 if (clock->enable) 450 if (clock->enable)
451 clock->enable(clock); 451 clock->enable(clock);
452 /* set mult_orig on enable */ 452 /* set mult_orig on enable */