From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751461AbbL1D37 (ORCPT ); Sun, 27 Dec 2015 22:29:59 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:33339 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbbL1D3w (ORCPT ); Sun, 27 Dec 2015 22:29:52 -0500 Date: Mon, 28 Dec 2015 08:59:49 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM list , Linux Kernel Mailing List , Srinivas Pandruvada Subject: Re: [PATCH 3/3] cpufreq: Simplify core code related to boost support Message-ID: <20151228032949.GG3598@ubuntu> References: <2196419.fjWAQbI2Nm@vostro.rjw.lan> <2445772.lclmJ5R52X@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2445772.lclmJ5R52X@vostro.rjw.lan> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27-12-15, 00:27, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Notice that the boost_supported field in struct cpufreq_driver is > redundant, because the driver's ->set_boost callback may be left > unset if "boost" is not supported. Moreover, the only driver > populating the ->set_boost callback is acpi_cpufreq, so make it > avoid populating that callback if "boost" is not supported, rework > the core to check ->set_boost instead of boost_supported to > verify "boost" support and drop boost_supported which isn't > used any more. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/cpufreq/acpi-cpufreq.c | 5 ++--- > drivers/cpufreq/cpufreq.c | 22 +++++++--------------- > include/linux/cpufreq.h | 1 - > 3 files changed, 9 insertions(+), 19 deletions(-) Acked-by: Viresh Kumar -- viresh