lkml.org 
[lkml]   [2011]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] clocksource: Avoid selecting mult values that might overflow when adjusted
On Wed, Nov 02, 2011 at 01:01:27PM -0700, John Stultz wrote:
> diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
> index 2b021b0e..d37c9e3 100644
> --- a/kernel/time/timekeeping.c
> +++ b/kernel/time/timekeeping.c
> @@ -820,6 +820,9 @@ static void timekeeping_adjust(s64 offset)
> } else
> return;
>
> + WARN_ONCE(timekeeper.mult+adj >
> + timekeeper.clock->mult + timekeeper.clock->maxadj,
> + "Adjusting more then 11%%");

s/then/than ; s/%%/%\n ?

Thanks,
Yong


\
 
 \ /
  Last update: 2011-11-03 04:13    [W:0.105 / U:0.652 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site