diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2010-07-15 10:29:00 +0200 |
|---|---|---|
| committer | Clark Williams <williams@redhat.com> | 2012-02-15 10:32:33 -0600 |
| commit | fa3887074ac6c6b1a0bfc5fd38a9699fba790bd2 (patch) | |
| tree | a0f2e18f1d7ccc5f0a913d196bb3ce49061bc7b9 /include/linux/timerqueue.h | |
| parent | 4891957dc541513a169d29eea31ac6acb372d8a8 (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/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
