From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751594AbcDGE2Z (ORCPT ); Thu, 7 Apr 2016 00:28:25 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:33888 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750845AbcDGE2X (ORCPT ); Thu, 7 Apr 2016 00:28:23 -0400 Date: Thu, 7 Apr 2016 09:58:20 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM list , Linux Kernel Mailing List , Srinivas Pandruvada Subject: Re: [PATCH] cpufreq: Skip all governor-related actions for cpufreq_suspended set Message-ID: <20160407042820.GA14903@vireshk-i7> References: <2044559.GVlD7a2JcO@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2044559.GVlD7a2JcO@vostro.rjw.lan> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-04-16, 03:29, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since governor operations are generally skipped if cpufreq_suspended > is set, do nothing at all in cpufreq_start_governor() and > cpufreq_exit_governor() in that case. > > In particular, this prevents fast frequency switching from being > disabled after a suspend-to-RAM cycle on all CPUs except for the > boot one. static int cpufreq_governor(struct cpufreq_policy *policy, unsigned int event) { int ret; /* Don't start any governor operations if we are entering suspend */ if (cpufreq_suspended) return 0; ... } Above already guarantees that we would start/stop governors. Why do we need this change then ? -- viresh