|
@@ -648,14 +648,15 @@ static int change_clocksource(void *data)
|
|
|
* This function is called from clocksource.c after a new, better clock
|
|
|
* source has been registered. The caller holds the clocksource_mutex.
|
|
|
*/
|
|
|
-void timekeeping_notify(struct clocksource *clock)
|
|
|
+int timekeeping_notify(struct clocksource *clock)
|
|
|
{
|
|
|
struct timekeeper *tk = &timekeeper;
|
|
|
|
|
|
if (tk->clock == clock)
|
|
|
- return;
|
|
|
+ return 0;
|
|
|
stop_machine(change_clocksource, clock, NULL);
|
|
|
tick_clock_notify();
|
|
|
+ return tk->clock == clock ? 0 : -1;
|
|
|
}
|
|
|
|
|
|
/**
|