Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756077Ab2J3IcV (ORCPT ); Tue, 30 Oct 2012 04:32:21 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:34969 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752051Ab2J3IcS (ORCPT ); Tue, 30 Oct 2012 04:32:18 -0400 Message-ID: <508F90A0.1030503@gmail.com> Date: Tue, 30 Oct 2012 16:32:32 +0800 From: Charles Wang <0oo0.hust@gmail.com> Reply-To: muming.wq@gmail.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Steven Rostedt CC: linux-kernel@vger.kernel.org, Andrew Morton , Thomas Gleixner , Peter Zijlstra , Clark Williams , Frederic Weisbecker , Li Zefan , Ingo Molnar , "Paul E. McKenney" , Mike Galbraith , Alessio Igor Bogani , Avi Kivity , Chris Metcalf , Christoph Lameter , Daniel Lezcano , Geoff Levand , Gilad Ben Yossef , Hakan Akkan , Kevin Hilman , Max Krasnyansky , Stephen Hemminger , Sven-Thorsten Dietrich Subject: Re: [PATCH 01/32] nohz: Move nohz load balancer selection into idle logic References: <20121029202711.062749374@goodmis.org> <20121029203846.797007049@goodmis.org> In-Reply-To: <20121029203846.797007049@goodmis.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1113 Lines: 34 calc_load_exit_idle depends on updated jiffies, so you shouldn't move this before tick_do_update_jiffies64. And why should we do nohz_balance_enter_idle in tick_nohz_idle_exit? It's nohz_balance_exit_idle here. Regards, Charles On 10/30/2012 04:27 AM, Steven Rostedt wrote: [snipped] > @@ -573,7 +573,6 @@ static void tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now) > tick_do_update_jiffies64(now); > update_cpu_load_nohz(); > > - calc_load_exit_idle(); > touch_softlockup_watchdog(); > /* > * Cancel the scheduled timer and restore the tick > @@ -628,6 +627,8 @@ void tick_nohz_idle_exit(void) > tick_nohz_stop_idle(cpu, now); > > if (ts->tick_stopped) { > + nohz_balance_enter_idle(cpu); > + calc_load_exit_idle(); > tick_nohz_restart_sched_tick(ts, now); > tick_nohz_account_idle_ticks(ts); > } -- 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/