diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2012-03-02 15:36:57 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-14 18:38:47 (GMT) |
commit | 52929348fe5a0dc0d29d0ae105748892e273f724 (patch) | |
tree | 5a3f1b3777826ef03ef02c00c07cec8e428ea91c /kernel/sched | |
parent | b70f16d9012ebbd3328330f12b1875bd82739ced (diff) | |
download | linux-fsl-qoriq-52929348fe5a0dc0d29d0ae105748892e273f724.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/sched')
0 files changed, 0 insertions, 0 deletions