Re: [PATCH] Fix try_to_freeze_tasks()'s use of do_div()
From: Pavel Machek
Date: Fri Jul 11 2008 - 13:59:16 EST
On Fri 2008-07-11 14:21:46, David Howells wrote:
> 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 <dhowells@xxxxxxxxxx>
ACK.
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/