From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751453AbcFYI5u (ORCPT ); Sat, 25 Jun 2016 04:57:50 -0400 Received: from www.linutronix.de ([62.245.132.108]:55989 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbcFYI5r (ORCPT ); Sat, 25 Jun 2016 04:57:47 -0400 Date: Sat, 25 Jun 2016 10:55:38 +0200 (CEST) From: Thomas Gleixner To: Richard Cochran cc: LKML , Ingo Molnar , Peter Zijlstra , "Paul E. McKenney" , Eric Dumazet , Frederic Weisbecker , Chris Mason , Arjan van de Ven , rt@linutronix.de, Rik van Riel , Linus Torvalds , George Spelvin , Len Brown , Josh Triplett Subject: Re: [patch V3 19/22] timer: Forward wheel clock whenever possible In-Reply-To: <20160624204519.GA13368@netboy> Message-ID: References: <20160624140325.554996200@linutronix.de> <20160624141723.016280325@linutronix.de> <20160624204519.GA13368@netboy> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Jun 2016, Richard Cochran wrote: > On Fri, Jun 24, 2016 at 02:32:19PM -0000, Thomas Gleixner wrote: > > @@ -809,6 +815,12 @@ static void tick_nohz_restart_sched_tick > > tick_do_update_jiffies64(now); > > cpu_load_update_nohz_stop(); > > > > + /* > > + * Clear the timer idle flag, so we avoid IPIs on remote queueing and > > + * the clock forward checks in the enqueue path. > > + */ > > + timer_clear_idle(); > > Since function calls timer_clear_idle() already ... > > > calc_load_exit_idle(); > > touch_softlockup_watchdog_sched(); > > /* > > @@ -1025,6 +1037,7 @@ void tick_nohz_idle_exit(void) > > tick_nohz_stop_idle(ts, now); > > > > if (ts->tick_stopped) { > > + timer_clear_idle(); > > tick_nohz_restart_sched_tick(ts, now); > > tick_nohz_account_idle_ticks(ts); > > } > > ... there is no need to call timer_clear_idle() here. Indeed.