From: Rafael J. Wysocki Date: Wed, 7 Jul 2010 21:43:51 +0000 (+0200) Subject: PM: Do not use dynamically allocated objects in pm_wakeup_event() X-Git-Tag: v2.6.36-rc1~577^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4eb241e5691363c391aac8a5051d0d013188ec84;p=pandora-kernel.git 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: Rafael J. Wysocki --- Reading git-diff-tree failed