From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754149AbcBGPgf (ORCPT ); Sun, 7 Feb 2016 10:36:35 -0500 Received: from mail-pf0-f180.google.com ([209.85.192.180]:35513 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753902AbcBGPge (ORCPT ); Sun, 7 Feb 2016 10:36:34 -0500 Date: Sun, 7 Feb 2016 21:06:30 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM list , Linux Kernel Mailing List , Peter Zijlstra , Srinivas Pandruvada , Juri Lelli , Steve Muckle , Thomas Gleixner Subject: Re: [PATCH 3/3 v5] cpufreq: governor: Replace timers with utilization update callbacks 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 Content-Disposition: inline In-Reply-To: <2448026.UXsVxjJmrX@vostro.rjw.lan> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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