diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-09-14 19:51:11 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-09-14 21:59:32 +0200 |
commit | e6c733050faa93ce616bfedccd279ab12cffdd7b (patch) | |
tree | 03a1b49744d5aacd98d9e26b0769acb90a38dfac /kernel/time | |
parent | f79e0258ea1f04d63db499479b5fb855dff6dbc5 (diff) | |
download | op-kernel-dev-e6c733050faa93ce616bfedccd279ab12cffdd7b.zip op-kernel-dev-e6c733050faa93ce616bfedccd279ab12cffdd7b.tar.gz |
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>
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/clocksource.c | 2 |
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); |