diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-07-15 08:29:00 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-02-13 22:20:12 (GMT) |
commit | cf3fb7f885dab76bdafa2f147002928ca1e3dd6e (patch) | |
tree | fb1b1701053f820a00127729ff45f6c7a36137d5 /include | |
parent | 8d2115a60c8bc79c839da535affa41468c49d995 (diff) | |
download | linux-fsl-qoriq-cf3fb7f885dab76bdafa2f147002928ca1e3dd6e.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 |