提交 e6c73305 编写于 作者: T Thomas Gleixner

clocksource: clocksource_select must be called with mutex locked

The callers of clocksource_select must hold clocksource_mutex to
protect the clocksource_list.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
LKML-Reference: <new-submission>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
上级 f79e0258
...@@ -471,7 +471,9 @@ static void clocksource_select(void) ...@@ -471,7 +471,9 @@ static void clocksource_select(void)
static int __init clocksource_done_booting(void) static int __init clocksource_done_booting(void)
{ {
finished_booting = 1; finished_booting = 1;
mutex_lock(&clocksource_mutex);
clocksource_select(); clocksource_select();
mutex_unlock(&clocksource_mutex);
return 0; return 0;
} }
fs_initcall(clocksource_done_booting); fs_initcall(clocksource_done_booting);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册