Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752523Ab3F0KZ3 (ORCPT ); Thu, 27 Jun 2013 06:25:29 -0400 Received: from mail-ob0-f182.google.com ([209.85.214.182]:44805 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371Ab3F0KZ1 (ORCPT ); Thu, 27 Jun 2013 06:25:27 -0400 MIME-Version: 1.0 In-Reply-To: <20130627114852.2889eea6@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> <20130626145412.1e9bfa63@amdc308.digital.local> <20130627114852.2889eea6@amdc308.digital.local> Date: Thu, 27 Jun 2013 15:55:26 +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 , t.figa@samsung.com 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: 1083 Lines: 28 On 27 June 2013 15:18, Lukasz Majewski wrote: > On Thu, 27 Jun 2013 14:32:57 +0530, Viresh Kumar wrote: > I thought about this idea, but at cpufreq_boost_trigger_state_sw() > I iterate through all available policies and call > cpufreq_frequency_table_cpuinfo()[*] on them. In this routine [*] I use > cpufreq_boost_enabled() [**] route to search for maximal (boost) > frequency. > The [**] reads boost_enabled flag, which shall be updated before. When > this search fails, then I restore the old value of boost_enabled. Ok. >> >> > + else >> >> > + ret = cpufreq_boost_trigger_state_sw(); >> >> then why not enable_boost_sw() here? that would be more >> relevant. > > Could you be more specific here? I meant rename cpufreq_boost_trigger_state_sw() to enable_boost_sw() :) -- 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/