Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2780029imm; Mon, 24 Sep 2018 09:46:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaU6ItBl6PN3giVBoir44g35vrqLUkyofs2u1ljAtFZJt5EeqbvRa/9KpgGpm8nSkZ5Jb3z X-Received: by 2002:a62:1895:: with SMTP id 143-v6mr7163175pfy.227.1537807595150; Mon, 24 Sep 2018 09:46:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537807595; cv=none; d=google.com; s=arc-20160816; b=Kx1TmrgjBhHxLljbp2YIOW6I633aMuWAg1SNVmFEbi862xWM5NrQtE7czry8l+P+nc 0DrAgd7Pz3M6R5DMyPyW7tk7oUxIQBMKszoQWgzYSLs5eW5oivqlbVEUSPCZHKtLiyOh M51jr0oIutbPSvKuyMqhsTVfTQudYR6hiGLr5Ll2QTuSWMvE0FwzeOkbMONmIW+S/qwj oUYOW5iNHQ6xFAskbIRot6KbUn2S4EaYf2CiR71CQ6C4NDfUzgtceJ8Vk2I2+nxkM8Q3 2PR/1PlUkL3sMbI5ZOBOa4LKYQhMT726armUiMzQ6QkByeFcbMTfBNXETH7N3K/MrJCi DhTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PVr/CJ7B+uWXN7854SVkpDqItnQYqwuMnFUoSQxV8bs=; b=D6tIU8mM82j27M9TbzwK4XnOKOhABd7b1pKObnRXfSVt1GioneYYg1ZByQ9cMYl4dk Y/yBRAKCscEtlpxO0Nx8oijH4tbVTPlkeXhoDwgigls5MxW4Nk+p/94oDhf1xoEClhKL 5rTl6hlEp6oQmCEePXB6D7EsTSRW82WqYgXFfv/X2MdIrKegGGhPSTiYtpjORoh4p76c ILPX8g4Ek5qMLST+YKKTHUSPsTsVH5mz28j3Yf8+NUzKb6jZKNsslvGh9TMU85orfNl5 ijTtj1E+tnkkIW1oGK/4FLOjFR2PE3KvRd7i1H7j+ZcK2G6qjvZodla7iDrtHilYK56o Hb1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xpv7LL4b; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6-v6si3937020pga.635.2018.09.24.09.46.19; Mon, 24 Sep 2018 09:46:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xpv7LL4b; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732357AbeIXWsi (ORCPT + 99 others); Mon, 24 Sep 2018 18:48:38 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38026 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730937AbeIXWsh (ORCPT ); Mon, 24 Sep 2018 18:48:37 -0400 Received: by mail-pl1-f194.google.com with SMTP id u11-v6so9367477plq.5; Mon, 24 Sep 2018 09:45:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=PVr/CJ7B+uWXN7854SVkpDqItnQYqwuMnFUoSQxV8bs=; b=Xpv7LL4bMVa4bwo1368VNBYToyWdAayAN1ivi17eHf3xqbswyTho4hbKQsyt5R+0Zo H6G2512Pc310BfCFRdwMUB64MYTaCq0NN1jYn4FY0kAGB+FLnjihHzvCHBG29Oud0Ic/ y9xOvRMK4Jb+MRWo4jvk73OpmHI9FFV3LPsNY8t2E9Robo97LM9QMC5Yp6of0oFjJPqR 20/mjFX6lv1lrDzqlKJ9EVW6sQbjSIVzpkoPw4Vk0h6Ad8TVo3HMWeB+K0XrxxFFyys4 mIeMxWLsL1rQywwEa48RcFecSzXIj08AyfbWUaud91WDX/+CSvqR4k6tkn9X3a+0cPO2 o6Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=PVr/CJ7B+uWXN7854SVkpDqItnQYqwuMnFUoSQxV8bs=; b=Tq0c8v2u+AD3KTQsD8hWJO4RyYwHKIsCyVUmJP4XaQ+Ni9uQQG7ZPNwj/09/R5rE/w L+s6CgyMXVP6KR7BXwJUmcxNknBp7Ko0TmXOS15+cgLzaF8SqcWGGxwJHEsZnlu6GZ2P m9Iu8M2yVm5+TnwKZ+1u3Wrmw9Owhx2Sr0uNrj9XQl8uBylqNwAd9qoyD456wrrmglEh rzdFjRMqPhUle5lqpvPsZDo9+sZCAL2vgd6cFyTfLd7j9qFg4kOlWuD4upO8c1ZHkk+P NRnt3qNAWt+X5bBW7h4LgqRuhBohMv9dO9QkUyPAGr/alM/ee4DIrgEjU6JO96V06sRy RISg== X-Gm-Message-State: ABuFfoiXU60EoOxFqyX/q8sVM+e3w1LUTpOI+dXcTg/P+WxSsRcrNdRR D2IlgQ8ofRxchhPQSDlRVI0= X-Received: by 2002:a17:902:7887:: with SMTP id q7-v6mr11349966pll.111.1537807535963; Mon, 24 Sep 2018 09:45:35 -0700 (PDT) Received: from localhost.localdomain ([2607:fb90:a699:bb10:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id c23-v6sm1149068pfh.26.2018.09.24.09.45.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 09:45:35 -0700 (PDT) Date: Mon, 24 Sep 2018 09:45:32 -0700 From: Eduardo Valentin To: Willy Wolff Cc: Zhang Rui , Daniel Lezcano , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] thermal: power_allocator: remove early break Message-ID: <20180924164531.GB4988@localhost.localdomain> References: <20180921130609.j3esni6xwhi2ew7d@inc028000032.lancs.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20180921130609.j3esni6xwhi2ew7d@inc028000032.lancs.ac.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey, On Fri, Sep 21, 2018 at 02:06:09PM +0100, Willy Wolff wrote: > If a trip of type critical is defined before any trip of passive > or active type, power_allocator governor will not switch on. But, if a critical trip is reached, the expectation is to perform a thermal shutdown. Why would you expect to have power allocator to be activated during the process of a shutdown? >=20 > Signed-off-by: Willy Wolff > --- > drivers/thermal/power_allocator.c | 2 -- > 1 file changed, 2 deletions(-) >=20 > diff --git a/drivers/thermal/power_allocator.c b/drivers/thermal/power_al= locator.c > index 3055f9a12a17..6544b68e3ebf 100644 > --- a/drivers/thermal/power_allocator.c > +++ b/drivers/thermal/power_allocator.c > @@ -496,8 +496,6 @@ static void get_governor_trips(struct thermal_zone_de= vice *tz, > } > } else if (type =3D=3D THERMAL_TRIP_ACTIVE) { > last_active =3D i; > - } else { > - break; > } > } > =20 > --=20 > 2.11.0 >=20