Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757156AbcC2MI2 (ORCPT ); Tue, 29 Mar 2016 08:08:28 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:44756 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752083AbcC2MIZ (ORCPT ); Tue, 29 Mar 2016 08:08:25 -0400 From: "Rafael J. Wysocki" To: Steve Muckle Cc: "Rafael J. Wysocki" , Linux PM list , Juri Lelli , ACPI Devel Maling List , Linux Kernel Mailing List , Peter Zijlstra , Srinivas Pandruvada , Viresh Kumar , Vincent Guittot , Michael Turquette , Ingo Molnar Subject: Re: [PATCH v6 6/7][Resend] cpufreq: Support for fast frequency switching Date: Tue, 29 Mar 2016 14:10:45 +0200 Message-ID: <2395635.E95YnUO5Qt@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.5.0-rc1+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <56F96039.9070500@linaro.org> References: <7262976.zPkLj56ATU@vostro.rjw.lan> <56F96039.9070500@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1481 Lines: 31 On Monday, March 28, 2016 09:47:53 AM Steve Muckle wrote: > On 03/25/2016 06:46 PM, Rafael J. Wysocki wrote: > >>> @@ -1726,6 +1810,34 @@ EXPORT_SYMBOL(cpufreq_unregister_notifie > >>> >> * GOVERNORS * > >>> >> *********************************************************************/ > >>> >> > >>> >> +/** > >>> >> + * cpufreq_driver_fast_switch - Carry out a fast CPU frequency switch. > >>> >> + * @policy: cpufreq policy to switch the frequency for. > >>> >> + * @target_freq: New frequency to set (may be approximate). > >>> >> + * > >>> >> + * Carry out a fast frequency switch from interrupt context. > >> > > >> > I think that should say atomic rather than interrupt as this might not > >> > be called from interrupt context. > > > > "Interrupt context" here means something like "context that cannot > > sleep" and it's sort of a traditional way of calling that. I > > considered saying "atomic context" here, but then decided that it > > might suggest too much. > > > > Maybe something like "Carry out a fast frequency switch without > > sleeping" would be better? > > Yes I do think that's preferable. I also wonder if it makes sense to > state expectations of how long the operation should take - i.e. not only > will it not sleep, but it is expected to complete "quickly." However I > accept that it is not well defined what that means. Maybe a mention that > this may be called in scheduler hot paths. OK