From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753924AbcBBV5f (ORCPT ); Tue, 2 Feb 2016 16:57:35 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36188 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbcBBV5d (ORCPT ); Tue, 2 Feb 2016 16:57:33 -0500 MIME-Version: 1.0 In-Reply-To: <48d24fd180e1fdf1c06a6992748c6365be43e937.1454410226.git.viresh.kumar@linaro.org> References: <48d24fd180e1fdf1c06a6992748c6365be43e937.1454410226.git.viresh.kumar@linaro.org> Date: Tue, 2 Feb 2016 22:57:32 +0100 X-Google-Sender-Auth: armZCzkrGgZNyZw_X_zskHLyT_I Message-ID: Subject: Re: [PATCH 5/5] cpufreq: Get rid of ->governor_enabled and its lock From: "Rafael J. Wysocki" To: Viresh Kumar Cc: Rafael Wysocki , Juri Lelli , Lists linaro-kernel , "linux-pm@vger.kernel.org" , Saravana Kannan , Peter Zijlstra , Michael Turquette , Steve Muckle , Vincent Guittot , Morten Rasmussen , dietmar.eggemann@arm.com, Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 2, 2016 at 11:57 AM, Viresh Kumar wrote: > Invalid state-transitions is verified by governor core now What about the governors that don't use cpufreq_governor_dbs()? > and there is no need to replicate that in cpufreq core. Also we don't drop > policy->rwsem anymore, which makes rest of the races go away. > > Simplify code a bit now. > > Signed-off-by: Viresh Kumar I won't make this change just yet. At least not in 4.5 (provided that the other patches go into it). Thanks, Rafael