PM / wakeup: Make events_lock a RAW_SPINLOCK
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 25 May 2018 09:46:46 +0000 (11:46 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 27 May 2018 09:55:02 +0000 (11:55 +0200)
commitbccaadab5c17ae20077bd93c44e2005b505791ba
tree7f7313f270f2c5aa536b4ab8ffd1d5ddcc49c23b
parentc1a957d17086d20d52d7f9c8dffaeac2ee09d6f9
PM / wakeup: Make events_lock a RAW_SPINLOCK

The `events_lock' is acquired during suspend while interrupts are
disabled even on RT. The lock is taken only for a very brief moment.
Make it a RAW lock which avoids "sleeping while atomic" warnings on RT.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/wakeup.c