summaryrefslogtreecommitdiffstats
path: root/Documentation/power
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2007-07-19 10:47:35 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 19:04:42 +0200
commitc2cf7d87d804c66e063829d5ca739053e901dc15 (patch)
tree0c8217d9dca6a3ffcf4073315a6a8f6328639b3a /Documentation/power
parentFreezer: return int from freeze_processes (diff)
downloadlinux-c2cf7d87d804c66e063829d5ca739053e901dc15.tar.xz
linux-c2cf7d87d804c66e063829d5ca739053e901dc15.zip
Freezer: remove redundant check in try_to_freeze_tasks
We don't need to check if todo is positive before calling time_after() in try_to_freeze_tasks(), because if todo is zero at this point, the loop will be broken anyway due to the while () condition being false. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Cc: Gautham R Shenoy <ego@in.ibm.com> Cc: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/power')
0 files changed, 0 insertions, 0 deletions