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

The `s2idle_lock' is acquired during suspend while interrupts are
disabled even on RT. The lock is acquired for short sections only.
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>
kernel/power/suspend.c