Skip to content
Commit 4eb241e5 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

PM: Do not use dynamically allocated objects in pm_wakeup_event()



Originally, pm_wakeup_event() uses struct delayed_work objects,
allocated with GFP_ATOMIC, to schedule the execution of pm_relax()
in future.  However, as noted by Alan Stern, it is not necessary to
do that, because all pm_wakeup_event() calls can use one static timer
that will always be set to expire at the latest time passed to
pm_wakeup_event().

The modifications are based on the example code posted by Alan.

Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent ce441011
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment