tmp_suning_uos_patched/kernel/power
David Howells f0af566da6 pm: fix try_to_freeze_tasks()'s use of do_div()
Fix try_to_freeze_tasks()'s use of do_div() on an s64 by making
elapsed_csecs64 a u64 instead and dividing that.

Possibly this should be guarded lest the interval calculation turn up
negative, but the possible negativity of the result of the division is
cast away anyway.

This was introduced by patch 438e2ce68d.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-24 10:47:24 -07:00
..
console.c
disk.c
Kconfig
main.c
Makefile
power.h
poweroff.c pm: schedule sysrq poweroff on boot cpu 2008-07-24 10:47:24 -07:00
process.c pm: fix try_to_freeze_tasks()'s use of do_div() 2008-07-24 10:47:24 -07:00
snapshot.c
swap.c
swsusp.c
user.c