Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752677AbcC3L3D (ORCPT ); Wed, 30 Mar 2016 07:29:03 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:34885 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752560AbcC3L3A (ORCPT ); Wed, 30 Mar 2016 07:29:00 -0400 MIME-Version: 1.0 In-Reply-To: <20160330050732.GE8773@vireshk-i7> References: <7262976.zPkLj56ATU@vostro.rjw.lan> <25154681.B5BGJ94JlQ@vostro.rjw.lan> <16969991.55r1UouI6A@vostro.rjw.lan> <20160330050732.GE8773@vireshk-i7> Date: Wed, 30 Mar 2016 13:28:58 +0200 X-Google-Sender-Auth: xHevT1WA_iO0bi7O5rnVG_mA5BQ Message-ID: Subject: Re: [Update][PATCH v7 6/7] cpufreq: Support for fast frequency switching From: "Rafael J. Wysocki" To: Viresh Kumar Cc: "Rafael J. Wysocki" , Linux PM list , Steve Muckle , Juri Lelli , ACPI Devel Maling List , Linux Kernel Mailing List , Peter Zijlstra , Srinivas Pandruvada , Vincent Guittot , Michael Turquette , Ingo Molnar 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: 722 Lines: 18 On Wed, Mar 30, 2016 at 7:07 AM, Viresh Kumar wrote: > On 30-03-16, 03:47, Rafael J. Wysocki wrote: >> Index: linux-pm/drivers/cpufreq/acpi-cpufreq.c >> @@ -843,6 +883,7 @@ static int acpi_cpufreq_cpu_exit(struct >> pr_debug("acpi_cpufreq_cpu_exit\n"); >> >> if (data) { >> + policy->fast_switch_possible = false; > > Is this done just for keeping code symmetric or is there a logical advantage > of this? Just for my understanding, not saying that it is wrong. It is not necessary for correctness today, as schedutil will be the only governor using fast switch, but generally that prevents leaking configuration information from one governor to another. Thanks, Rafael