[PATCH RT 09/12] cpu/rt: Fix cpu_hotplug variable initialization

From: Steven Rostedt
Date: Tue Jul 17 2012 - 11:33:08 EST

From: Steven Rostedt <srostedt@xxxxxxxxxx>

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@xxxxxxxxxxxxxxx
Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
kernel/cpu.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/kernel/cpu.c b/kernel/cpu.c
index c5b3273..3e722c0 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -54,11 +54,7 @@ static struct {
int refcount;
} cpu_hotplug = {
.active_writer = NULL,
- .lock = __SPIN_LOCK_UNLOCKED(cpu_hotplug.lock),
.lock = __MUTEX_INITIALIZER(cpu_hotplug.lock),
.refcount = 0,


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/