summaryrefslogtreecommitdiff
path: root/include/linux/pps_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/pps_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/pps_kernel.h')
0 files changed, 0 insertions, 0 deletions