login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
11
Re: [PATCH] Fix try_to_freeze_tasks()'s use of do_div()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Rafael J. Wysocki <rjw@...>
To: David Howells <dhowells@...>
Cc: <akpm@...>, <pavel@...>, <linux-kernel@...>
Subject:
Re: [PATCH] Fix try_to_freeze_tasks()'s use of do_div()
Date: Friday, July 11, 2008 - 11:05 am
On Friday, 11 of July 2008, David Howells wrote:
quoted text
> 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@redhat.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
quoted text
> --- > > kernel/power/process.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > > diff --git a/kernel/power/process.c b/kernel/power/process.c > index 5fb8765..278946a 100644 > --- a/kernel/power/process.c > +++ b/kernel/power/process.c > @@ -149,7 +149,7 @@ static int try_to_freeze_tasks(bool sig_only) > unsigned long end_time; > unsigned int todo; > struct timeval start, end; > - s64 elapsed_csecs64; > + u64 elapsed_csecs64; > unsigned int elapsed_csecs; > > do_gettimeofday(&start); > > >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] Fix try_to_freeze_tasks()'s use of do_div()
, David Howells
, (Fri Jul 11, 9:21 am)
Re: [PATCH] Fix try_to_freeze_tasks()'s use of do_div()
, Pavel Machek
, (Fri Jul 11, 1:59 pm)
Re: [PATCH] Fix try_to_freeze_tasks()'s use of do_div()
, Rafael J. Wysocki
, (Fri Jul 11, 11:05 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Andrew Morton
2.6.23-mm1
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Justin Piszcz
Re: 2.6.23.1: mdadm/raid5 hung/d-state
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Kenny Chang
Multicast packet loss
Stephen Hemminger
Re: HTB accuracy for high speed
David Miller
[GIT]: Networking
openbsd-misc
:
git
:
Sander
'struct task_struct' has no member named 'mems_allowed' (was: Re: 2.6.20-rc4-mm1)
Colocation donated by:
Who's online
There are currently
2 users
and
473 guests
online.
Online users
ijaldmi
Jamespro3
Syndicate