summaryrefslogtreecommitdiff
path: root/kernel/groups.c
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2012-03-02 15:36:57 (GMT)
committerScott Wood <scottwood@freescale.com>2013-04-04 22:09:34 (GMT)
commitbccf7742b7f3b50cbc0087663f5e1bddf88e54af (patch)
tree29fab77034511d6d10338c4079dee94b155aad07 /kernel/groups.c
parent5673cd604eeee718e563f6a551a82e7cb48df7d5 (diff)
downloadlinux-fsl-qoriq-bccf7742b7f3b50cbc0087663f5e1bddf88e54af.tar.xz
cpu: Make hotplug.lock a "sleeping" spinlock on RT
Tasks can block on hotplug.lock in pin_current_cpu(), but their state might be != RUNNING. So the mutex wakeup will set the state unconditionally to RUNNING. That might cause spurious unexpected wakeups. We could provide a state preserving mutex_lock() function, but this is semantically backwards. So instead we convert the hotplug.lock() to a spinlock for RT, which has the state preserving semantics already. Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Cc: Carsten Emde <C.Emde@osadl.org> Cc: John Kacur <jkacur@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Clark Williams <clark.williams@gmail.com> Cc: stable-rt@vger.kernel.org Link: http://lkml.kernel.org/r/1330702617.25686.265.camel@gandalf.stny.rr.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/groups.c')
0 files changed, 0 insertions, 0 deletions