From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH 3/3 v5] cpufreq: governor: Replace timers with utilization update callbacks Date: Sun, 7 Feb 2016 21:06:30 +0530 Message-ID: <20160207153630.GE3808@vireshk> References: <3071836.JbNxX8hU6x@vostro.rjw.lan> <1486401.1RcnnVKZNP@vostro.rjw.lan> <2848076.UWJmIl2O1K@vostro.rjw.lan> <2448026.UXsVxjJmrX@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <2448026.UXsVxjJmrX@vostro.rjw.lan> Sender: linux-kernel-owner@vger.kernel.org To: "Rafael J. Wysocki" Cc: Linux PM list , Linux Kernel Mailing List , Peter Zijlstra , Srinivas Pandruvada , Juri Lelli , Steve Muckle , Thomas Gleixner List-Id: linux-pm@vger.kernel.org On 07-02-16, 15:50, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Instead of using a per-CPU deferrable timer for queuing up governor > work items, register a utilization update callback that will be > invoked from the scheduler on utilization changes. > > The sampling rate is still the same as what was used for the > deferrable timers and the added irq_work overhead should be offset by > the eliminated timers overhead, so in theory the functional impact of > this patch should not be significant. > > Signed-off-by: Rafael J. Wysocki > Acked-by: Viresh Kumar > --- > > Changes from v4: > - Moved init_irq_work() to alloc_common_dbs_info() so it is done along with > the INIT_WORK() on the main work structure (which seems more logical to me). > - Added the ACK from Viresh (in the hope that it still applied). Acked-by: Viresh Kumar -- viresh