From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: [PATCH RT 2/5] cpu/rt: Fix cpu_hotplug variable initialization Date: Tue, 17 Jul 2012 22:04:29 -0400 Message-ID: <20120718020510.766031014@goodmis.org> References: <20120718020427.338763317@goodmis.org> Cc: Thomas Gleixner , Carsten Emde , John Kacur To: linux-kernel@vger.kernel.org, linux-rt-users Return-path: Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:19370 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751491Ab2GRCFM (ORCPT ); Tue, 17 Jul 2012 22:05:12 -0400 Content-Disposition: inline; filename=0002-cpu-rt-Fix-cpu_hotplug-variable-initialization.patch Sender: linux-rt-users-owner@vger.kernel.org List-ID: From: Steven Rostedt 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 --- kernel/cpu.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 0964e93..8f87b72 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, }; -- 1.7.10.4