PM / Sleep: Do not check wakeup too often in try_to_freeze_tasks()
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 10 Feb 2012 23:00:34 +0000 (00:00 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 13 Feb 2012 15:26:05 +0000 (16:26 +0100)
commit6c83b4818dd65eb17e633b6b629a81da7bed90b3
tree97eddcc6d07daf0ea1be84c57e7a687b3d406151
parent7c95149b7f1f61201b12c73c4862a41bf2428961
PM / Sleep: Do not check wakeup too often in try_to_freeze_tasks()

Use the observation that it is more efficient to check the wakeup
variable once before the loop reporting tasks that were not
frozen in try_to_freeze_tasks() than to do that in every step of that
loop.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/process.c