projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f79e025
)
clocksource: clocksource_select must be called with mutex locked
author
Thomas Gleixner
<tglx@linutronix.de>
Mon, 14 Sep 2009 17:51:11 +0000
(19:51 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Mon, 14 Sep 2009 19:59:32 +0000
(21:59 +0200)
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>
kernel/time/clocksource.c
patch
|
blob
|
history
diff --git
a/kernel/time/clocksource.c
b/kernel/time/clocksource.c
index 5697155f1868037fa0fd1863cfabc6ee69399b98..2c2e5ba1453d4e5ce977a70d89d24394233c7590 100644
(file)
--- 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);