diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-07-17 10:45:59 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-08-13 18:56:53 -0400 |
commit | 4ccfbd7d6afbd1f5d285e8892bd1001489e48fa8 (patch) | |
tree | 64d41edd074d3d71f4e2466ff050517ac8a71360 | |
parent | 523a5e5f9a584d439c27adbb82bc512f4eb6b89f (diff) | |
download | linux-rt-4ccfbd7d6afbd1f5d285e8892bd1001489e48fa8.tar.gz |
cpu/rt: Fix cpu_hotplug variable initialization
The commit "cpu/rt: Rework cpu down for PREEMPT_RT" changed the double
meaning of the cpu_hotplug.lock, where it was a spinlock for RT and a
mutex for non-RT, to just a mutex for both. But the initialization of
the variable was not updated to reflect this change.
Cc: stable-rt@vger.kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | kernel/cpu.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 0964e93e925f..8f87b722a82b 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -54,11 +54,7 @@ static struct { int refcount; } cpu_hotplug = { .active_writer = NULL, -#ifdef CONFIG_PREEMPT_RT_FULL - .lock = __SPIN_LOCK_UNLOCKED(cpu_hotplug.lock), -#else .lock = __MUTEX_INITIALIZER(cpu_hotplug.lock), -#endif .refcount = 0, }; |