lkml.org 
[lkml]   [2011]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:sched/core] sched: Untangle cpu-load and timekeeping code
On Wed, Jan 26, 2011 at 12:14:43PM +0000, tip-bot for Peter Zijlstra wrote:
> Commit-ID: 18a57c3b43781ea83c3bb21c3add84ba890d5fb3
> Gitweb: http://git.kernel.org/tip/18a57c3b43781ea83c3bb21c3add84ba890d5fb3
> Author: Peter Zijlstra <a.p.zijlstra@chello.nl>
> AuthorDate: Tue, 25 Jan 2011 11:30:35 +0100
> Committer: Ingo Molnar <mingo@elte.hu>
> CommitDate: Wed, 26 Jan 2011 12:33:23 +0100
>
> sched: Untangle cpu-load and timekeeping code
>
> Remove the calc_global_load() call from the timekeeping code and make
> it local to the scheduler.
>
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
> LKML-Reference: <new-submission>
> Signed-off-by: Ingo Molnar <mingo@elte.hu>
> ---
> +static void calc_global_load(unsigned long __data)
> {
> long active;
>
> - calc_global_nohz(ticks);
> + calc_global_nohz();
>
> if (time_before(jiffies, calc_load_update + 10))
> return;

We should not do this checking any more. In normal case,
it will always return false.
If it indeed returns true for some reason, we will lose the
timer forever.

Thanks,
Yong


\
 
 \ /
  Last update: 2011-01-26 13:31    [W:0.088 / U:1.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site