diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-07-15 08:29:00 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-14 18:37:49 (GMT) |
commit | fafc8bc1f28910a260c8cb1b109b6ae00b8c75c5 (patch) | |
tree | e29f6af9e038a3cf788e9f987038187e842ff57d /include | |
parent | 96fca1455c91d874804fcafecd6c555bcb16b8ed (diff) | |
download | linux-fsl-qoriq-fafc8bc1f28910a260c8cb1b109b6ae00b8c75c5.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kernel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 672ddc4..c34e608 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -412,6 +412,7 @@ extern enum system_states { SYSTEM_HALT, SYSTEM_POWER_OFF, SYSTEM_RESTART, + SYSTEM_SUSPEND, } system_state; #define TAINT_PROPRIETARY_MODULE 0 |