aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-07-15 10:29:00 +0200
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2013-05-20 13:45:30 -0400
commitcdef8cd9c48936c47baada1b91defeb71de3c3d1 (patch)
tree0484e4db1a7a42892a16f1a11d3ef5984b7a44e5 /include
parenta2a20bd4609e1eb7a4d3ef4bc527d9e77f1e9733 (diff)
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index a70783d199e4..22bdd4bf0e1b 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -369,7 +369,7 @@ extern enum system_states {
SYSTEM_HALT,
SYSTEM_POWER_OFF,
SYSTEM_RESTART,
- SYSTEM_SUSPEND_DISK,
+ SYSTEM_SUSPEND,
} system_state;
#define TAINT_PROPRIETARY_MODULE 0