Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754433AbcC1Fbj (ORCPT ); Mon, 28 Mar 2016 01:31:39 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33140 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752921AbcC1Fba (ORCPT ); Mon, 28 Mar 2016 01:31:30 -0400 Date: Mon, 28 Mar 2016 11:01:26 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM list , Juri Lelli , Steve Muckle , ACPI Devel Maling List , Linux Kernel Mailing List , Peter Zijlstra , Srinivas Pandruvada , Vincent Guittot , Michael Turquette , Ingo Molnar Subject: Re: [PATCH v6 1/7][Resend] cpufreq: sched: Helpers to add and remove update_util hooks Message-ID: <20160328053126.GG32495@vireshk-i7> References: <7262976.zPkLj56ATU@vostro.rjw.lan> <4984400.nsZvPb32HI@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4984400.nsZvPb32HI@vostro.rjw.lan> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 745 Lines: 20 On 22-03-16, 02:46, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Replace the single helper for adding and removing cpufreq utilization > update hooks, cpufreq_set_update_util_data(), with a pair of helpers, > cpufreq_add_update_util_hook() and cpufreq_remove_update_util_hook(), > and modify the users of cpufreq_set_update_util_data() accordingly. > > With the new helpers, the code using them doesn't need to worry > about the internals of struct update_util_data and in particular > it doesn't need to worry about populating the func field in it > properly upfront. > > Signed-off-by: Rafael J. Wysocki > --- Acked-by: Viresh Kumar -- viresh