Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932633AbbKMUXI (ORCPT ); Fri, 13 Nov 2015 15:23:08 -0500 Received: from www.linutronix.de ([62.245.132.108]:33768 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932456AbbKMUXH (ORCPT ); Fri, 13 Nov 2015 15:23:07 -0500 Date: Fri, 13 Nov 2015 15:22:16 -0500 (EST) From: Thomas Gleixner To: Jacob Pan cc: Peter Zijlstra , Ingo Molnar , John Stultz , LKML , Arjan van de Ven , Srinivas Pandruvada , Len Brown , Rafael Wysocki , Eduardo Valentin , Paul Turner Subject: Re: [PATCH 2/4] timer: relax tick stop in idle entry In-Reply-To: <1447444387-23525-3-git-send-email-jacob.jun.pan@linux.intel.com> Message-ID: References: <1447444387-23525-1-git-send-email-jacob.jun.pan@linux.intel.com> <1447444387-23525-3-git-send-email-jacob.jun.pan@linux.intel.com> 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 Content-Length: 813 Lines: 25 On Fri, 13 Nov 2015, Jacob Pan wrote: > Upon entering idle, we can turn off tick if the next timeout > is exactly one tick away. Otherwise, we could enter inner idle loop > with tick still enabled, without resched set, the tick will continue > during idle therefore less optimal in terms of energy savings. This does not make any sense at all. next_tick is the next required tick event. If it's exactly ONE tick away why should we go through the hassle of stopping it? Just to cancel the timer and then set it to the same value again? Oh well. Thanks, tglx -- 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/