Thomas Gleixner b0bf64af36
suspend: Prevent might sleep splats
timekeeping suspend/resume calls read_persistant_clock() which takes
rtc_lock. That results in might sleep warnings because at that point
we run with interrupts disabled.

We cannot convert rtc_lock to a raw spinlock as that would trigger
other might sleep warnings.

As a temporary workaround we disable the might sleep warnings by
setting system_state to SYSTEM_SUSPEND before calling sysdev_suspend()
and restoring it to SYSTEM_RUNNING afer sysdev_resume().

Needs to be revisited.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-06-30 14:12:30 +00:00
..
2022-06-30 14:12:20 +00:00
2021-03-03 18:58:56 +01:00
2020-09-24 12:45:16 +02:00
2022-04-06 13:18:17 +07:00
2022-06-30 14:12:30 +00:00
2022-06-30 14:12:20 +00:00
2022-06-30 14:12:20 +00:00
2022-06-30 14:12:30 +00:00
2020-01-13 19:40:11 +00:00
2022-04-06 13:18:17 +07:00
2022-06-30 14:12:20 +00:00
2022-04-06 13:18:17 +07:00
2020-04-02 16:34:20 +02:00
2022-06-30 14:12:30 +00:00
2021-02-07 14:47:41 +01:00
2022-06-30 14:12:21 +00:00
2022-04-06 13:18:17 +07:00
2022-04-06 13:18:17 +07:00
2022-04-06 13:20:11 +07:00