mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
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: Thomas Gleixner <tglx@linutronix.de> LKML-Reference: <new-submission> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
f79e0258ea
commit
e6c733050f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue