Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754430Ab3F1Dk4 (ORCPT ); Thu, 27 Jun 2013 23:40:56 -0400 Received: from mail-oa0-f51.google.com ([209.85.219.51]:52774 "EHLO mail-oa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753978Ab3F1Dky (ORCPT ); Thu, 27 Jun 2013 23:40:54 -0400 MIME-Version: 1.0 In-Reply-To: <20130627175546.677d9f9b@amdc308.digital.local> References: <1370502472-7249-1-git-send-email-l.majewski@samsung.com> <1371661969-7660-1-git-send-email-l.majewski@samsung.com> <1371661969-7660-3-git-send-email-l.majewski@samsung.com> <20130627175546.677d9f9b@amdc308.digital.local> Date: Fri, 28 Jun 2013 09:10:53 +0530 Message-ID: Subject: Re: [PATCH v4 2/7] cpufreq: Add boost frequency support in core From: Viresh Kumar To: Lukasz Majewski Cc: "Rafael J. Wysocky" , "cpufreq@vger.kernel.org" , Linux PM list , Vincent Guittot , Jonghwa Lee , Myungjoo Ham , linux-kernel , Lukasz Majewski , Andre Przywara , Daniel Lezcano , Kukjin Kim , Zhang Rui , Eduardo Valentin Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1135 Lines: 24 On 27 June 2013 21:25, Lukasz Majewski wrote: > On Wed, 26 Jun 2013 16:24:32 +0530, Viresh Kumar wrote: >> > + if (boost_enabled != state) { >> > + write_lock_irqsave(&cpufreq_driver_lock, flags); >> > + boost_enabled = state; >> > + if (cpufreq_driver->enable_boost) >> > + ret = cpufreq_driver->enable_boost(state); >> > + else >> > + ret = cpufreq_boost_trigger_state_sw(); > > I will use only one call to cpufreq_driver->enable_boost(state) [*] with > either cpufreq_boost_enable_sw() (function with SW boost handling) or > the one provided by cpufreq driver. > > Only when cpufreq driver doesn't provide [*], it will be filled with > "default" cpufreq_boost_enable_sw(). I didn't get it completely. You are saying you will send a function pointer now? -- 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/