OSDN Git Service

stop_machine: Use raw spinlocks
authorThomas Gleixner <tglx@linutronix.de>
Mon, 23 Apr 2018 19:16:35 +0000 (21:16 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 27 Apr 2018 12:34:51 +0000 (14:34 +0200)
commitde5b55c1d4e30740009864eb35ce4ed856aac01d
treef9cbc737eace0d3ac350c478197a851607f3eea0
parent02acc80d19edb0d5684c997b2004ad19f9f5236e
stop_machine: Use raw spinlocks

Use raw-locks in stop_machine() to allow locking in irq-off and
preempt-disabled regions on -RT. This also documents the possible locking
context in general.

[bigeasy: update patch description.]
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lkml.kernel.org/r/20180423191635.6014-1-bigeasy@linutronix.de
kernel/stop_machine.c