summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/time/clocksource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 5697155..2c2e5ba 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -471,7 +471,9 @@ static void clocksource_select(void)
static int __init clocksource_done_booting(void)
{
finished_booting = 1;
+ mutex_lock(&clocksource_mutex);
clocksource_select();
+ mutex_unlock(&clocksource_mutex);
return 0;
}
fs_initcall(clocksource_done_booting);
OpenPOWER on IntegriCloud