summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-07-15 10:29:00 +0200
committerClark Williams <williams@redhat.com>2012-02-15 10:32:33 -0600
commitfa3887074ac6c6b1a0bfc5fd38a9699fba790bd2 (patch)
treea0f2e18f1d7ccc5f0a913d196bb3ce49061bc7b9 /include/linux/kernel.h
parent4891957dc541513a169d29eea31ac6acb372d8a8 (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/linux/kernel.h')
-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 e8b1597b5cf2..c485aaa618d6 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -356,7 +356,7 @@ extern enum system_states {
SYSTEM_HALT,
SYSTEM_POWER_OFF,
SYSTEM_RESTART,
- SYSTEM_SUSPEND_DISK,
+ SYSTEM_SUSPEND,
} system_state;
#define TAINT_PROPRIETARY_MODULE 0