From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751376AbcBEDdK (ORCPT ); Thu, 4 Feb 2016 22:33:10 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36352 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035AbcBEDdH (ORCPT ); Thu, 4 Feb 2016 22:33:07 -0500 MIME-Version: 1.0 In-Reply-To: <20160205032444.GC21792@vireshk> References: <3705929.bslqXH980s@vostro.rjw.lan> <1529283.0IedZktI9q@vostro.rjw.lan> <20160204050954.GU3469@vireshk> <20160205025948.GE3068@vireshk> <20160205032444.GC21792@vireshk> Date: Fri, 5 Feb 2016 04:33:05 +0100 X-Google-Sender-Auth: q-JuJr2GbKSPfs00ArQEJuYhgS0 Message-ID: Subject: Re: [PATCH 2/11] cpufreq: governor: Use common mutex for dbs_data protection From: "Rafael J. Wysocki" To: Viresh Kumar Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux PM list , Linux Kernel Mailing List , Srinivas Pandruvada , Juri Lelli , Steve Muckle , Saravana Kannan 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 Fri, Feb 5, 2016 at 4:24 AM, Viresh Kumar wrote: > On 05-02-16, 04:17, Rafael J. Wysocki wrote: >> And don't we switch governors under policy->rwsem anyway? > > So ? That is blocking only a single policy only, but with the new > change, we will block all policies from doing that concurrently. No, it won't. Again: one lock instead of two. How much of a difference this makes performance-wise? And the price is the stupid dance we need to do to even get to those locks! Come on. Thanks, Rafael