Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp541926rwb; Tue, 4 Oct 2022 07:28:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6HqqMQn1u91TGiA9dJulngLu+eA5n25GH3i/O81HZvC2orfHlvOoFUrn9M58Ihxw47VB1y X-Received: by 2002:a17:906:dc95:b0:782:f2a8:7e45 with SMTP id cs21-20020a170906dc9500b00782f2a87e45mr18597936ejc.424.1664893725233; Tue, 04 Oct 2022 07:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664893725; cv=none; d=google.com; s=arc-20160816; b=uRdOYnE6noJjlS0uwqywKu1eX3wLC+y2S/6l1wPAlHindvOO6ElShI6eUe9QuVmtZH hkRqGb7MZNq9FUpW6u6Aw0FJNPj5+3U900J+HzksMPWG3LqFfTAIcJvDpIUFmZVre/CV 3PIh/vZzpRf/Vy/iVxmvQbLssXVbXc8cG9xb4vSbQEggLB+xUg1VjgvrDDApnShYGJqw 1LARdTy8KGJOA+4fXzvGLhTwaW+bHDEC+JKA/aeHq2dF3cyGG+4RQ3o4/UZxxzqz6MrM K+f8SRWnszAwDvOALfvgbaVh7QhjlZXURp26vz53b4mvAftqVwICmQC9guWS7xDc29J8 ZMUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EBIFBYTL7bMXiKCqbN4v2KD/O06MsmUI5Kr5v5gQFes=; b=DK1iz7nszF37iTIq8JcabDIsxXgckSHNu3HHHb2cRDAAPWLF44FgWgfL7BmpJLr2+L 38murmsTdRaVFCMQnrgBo4KWSEItz7nqd9CZmj7nBEJc2XdqS3MqmhF8mWxfxCUR80o3 1rPGOQVJYiOs0dtg6hu+trYcPThiQ6qj/2ME06IA+lWGkgZt160T2q/N5mgzRKLkK4cg ag5RsF1EzFSZivLRTSE2hwOwtuMo2QNPgp1QBnJ82bK/GKCnTih6LXjJutph2Q+J6gMm okrnop019RI4DtSC+hao/hffprsFGYr3gvXTWWQLhESSanpmupdzabc6jI6dBeFkVlpl s8Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hfmhyOmo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19-20020a17090686d300b007836ec699a2si9076118ejy.186.2022.10.04.07.28.18; Tue, 04 Oct 2022 07:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hfmhyOmo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbiJDOVb (ORCPT + 99 others); Tue, 4 Oct 2022 10:21:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbiJDOVZ (ORCPT ); Tue, 4 Oct 2022 10:21:25 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECACC5F223 for ; Tue, 4 Oct 2022 07:21:15 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id r13so68086wrj.11 for ; Tue, 04 Oct 2022 07:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=EBIFBYTL7bMXiKCqbN4v2KD/O06MsmUI5Kr5v5gQFes=; b=hfmhyOmo176w9X7w+jZ5ldnct3FC2G6CRaFpfD1eZTVDiNxg9OTEWDPb3SCZnSMAfq nrMDXTsKfbgaL67TN09f18QQI/ndXWz430x9nZcuetrlfTvgGLAHcW44mmPofZwyElJb IUtvPC3uJP381g9Qa6qDogdbD564rDou0fogsVgJ3/VakGFREZjv1XrH79mwxiNqjVYX ZNUmPn7VsIXRoqvvqc/+i/x/eANmFv/RBLfx2kbTEetUBOedO2szuY/a8tRc9WqsWdIu ooqxUGPTAxxEuS0OO3BYcTuk1sZBgoD6n2BPuhURaZULus1PQMScGBVe85qRy1gjwnlG JRow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EBIFBYTL7bMXiKCqbN4v2KD/O06MsmUI5Kr5v5gQFes=; b=cTl3OPOCdLwEB2Q1/qaeNIfDXWeVn18vXlf7ZtjV4da1EL57wQ0ybP+YFyM2/lgSVv nxql7CrPlwI9VTa0IGYmCw+DFGle+ZwGT7MRjgSklYIaPttAxl9dE2tGqlk/rvZgXai/ W2od86s9TSjPqxg54l+AmzkF3Hk0z+5CBjvAthLCnwOfq3Ydo6GW+ZkvH8H/qh9ip5Vi E2K4u9svc5loWHgJfqGxECruHwiZ+Jm6uJY9jZlokEXIAkumbeoMarqv0zwYSBzaQp0b aPI1mQoo1H6yUbZ1AZjHrDubh4zXTsXth/zcBnS9DDALYRoyx4KcupvLrSiXPpN53Mzn RoWA== X-Gm-Message-State: ACrzQf3O35XO2q8UJ1qsCFp9mnpGcl29SuJAhDnZ5s/2SPiykVcLKQcN n+W6PRZhV6oUFGWChzk5bFEt3w== X-Received: by 2002:a05:6000:682:b0:22e:2d5f:ba9e with SMTP id bo2-20020a056000068200b0022e2d5fba9emr9735694wrb.226.1664893273994; Tue, 04 Oct 2022 07:21:13 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:c456:8337:99aa:2667? ([2a05:6e02:1041:c10:c456:8337:99aa:2667]) by smtp.googlemail.com with ESMTPSA id v13-20020a05600c214d00b003b505d26776sm18956957wml.5.2022.10.04.07.21.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Oct 2022 07:21:13 -0700 (PDT) Message-ID: <317e3cf1-2e20-d5ec-1bdc-f8537a8231d1@linaro.org> Date: Tue, 4 Oct 2022 16:21:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 4/5] thermal/core: Move the thermal zone lock out of the governors Content-Language: en-US To: Guenter Roeck Cc: rafael@kernel.org, rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria , Lukasz Luba References: <20220805153834.2510142-1-daniel.lezcano@linaro.org> <20220805153834.2510142-4-daniel.lezcano@linaro.org> <20221004141454.GA1746997@roeck-us.net> From: Daniel Lezcano In-Reply-To: <20221004141454.GA1746997@roeck-us.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/10/2022 16:14, Guenter Roeck wrote: > On Fri, Aug 05, 2022 at 05:38:33PM +0200, Daniel Lezcano wrote: >> All the governors throttling ops are taking/releasing the lock at the >> beginning and the end of the function. >> >> We can move the mutex to the throttling call site instead. >> >> Signed-off-by: Daniel Lezcano >> --- >> drivers/thermal/gov_bang_bang.c | 4 +--- >> drivers/thermal/gov_fair_share.c | 4 +--- >> drivers/thermal/gov_power_allocator.c | 16 ++++++---------- >> drivers/thermal/gov_step_wise.c | 4 +--- >> drivers/thermal/thermal_core.c | 2 ++ > > This doesn't drop the lock from drivers/thermal/gov_user_space.c. > Is that on purpose ? No, it is an oversight. It was fixed after by Rafael -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog