diff options
| author | David Howells <[email protected]> | 2008-07-23 21:28:44 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-07-24 10:47:24 -0700 |
| commit | f0af566da6e9a4a2f5a83c5a70f3d0a772050e21 (patch) | |
| tree | 4f7a4819abfde03938bb95c525ed652bcfe40a52 /include/linux/debugobjects.h | |
| parent | e41fb7c58e3ca18ec5c9c9bb7bb68e8e653c9e8e (diff) | |
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 438e2ce68dfd4af4cfcec2f873564fb921db4bb5.
Signed-off-by: David Howells <[email protected]>
Acked-by: "Rafael J. Wysocki" <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions