From patchwork Fri Sep 21 13:06:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Willy Wolff X-Patchwork-Id: 10610017 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 04F9B6CB for ; Fri, 21 Sep 2018 13:06:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E777829A26 for ; Fri, 21 Sep 2018 13:06:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB95E2D8D7; Fri, 21 Sep 2018 13:06:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8849129A26 for ; Fri, 21 Sep 2018 13:06:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388909AbeIUSzA (ORCPT ); Fri, 21 Sep 2018 14:55:00 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35855 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728100AbeIUSy7 (ORCPT ); Fri, 21 Sep 2018 14:54:59 -0400 Received: by mail-wm1-f66.google.com with SMTP id j192-v6so3214348wmj.1; Fri, 21 Sep 2018 06:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=m3a2xktoMXO/I633rPSU+tzFGyBigyIoXTYgwP1b8Dg=; b=tSS+POlCIPCSi5TNVDeFPPu88q1TfTKyjkqVmX3t4wCtW2kkfoQWe3ScQHYqlNQDOV 1VJG9EAWL9o3nCAOnrFt0GRCRCgBHZVC1cxSXf0g5FVZRMXXJjF8jQBc5I4p2zdELtEX dm/5Hl6rAGUT8NAwAXNicvv5yBND8gPMhpxRBYydcpua3gGlIlmkDVvOU5DuIGHSJzgx e34k/kL3VmiYrvmAlhb+wBgJC9DhATSZLk+M+zseH9sxpbUc8N1+vWBZFUyexaBtXrt7 kfPtb2BIbS4dUzt5gq0RDP+Vpe5swpgC3JXzhjRQD3wWvspKIcNMCjy/bwg2nLs56dmT zk9w== 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:subject:message-id:mime-version :content-disposition:user-agent; bh=m3a2xktoMXO/I633rPSU+tzFGyBigyIoXTYgwP1b8Dg=; b=r3ZprdDd7AeTRE692sYM5F6w9o4nwb3kzdm5GzL2oUOYy3xcqDml+CD0dU2k0yqPuS zzq1gFJTgzPgpVkYENZAWbQRPAZ4CPcjfTWLBgxNu3pQJbIWER0ccEm156t79GyAfz+l aIdcSB92inAP4pPQroeAerK07cOdB1a3inJq3+wd6zTpKPPBFBZ2d5281GwEwf0nbC/b HvpKAoDJvovvuAiHIT8nVkt6DK/r6FD4CuzZ50OOXLzRUw5CFVYS6/SbSa25c5pSuV0F ObjnyrGgW1azcI3fR5QnDucf/391TScpkyqPLqpYihTUh0MqyDbUf6fRqqQOOeEG7LfM lqew== X-Gm-Message-State: APzg51Bk9OwBLXyU7YZq7ZyAfMMrHQCzQFksheQjPLYGj4bcmMNBGga9 E3G1GwXCQXRPvARlcQAmN5fAP6YU X-Google-Smtp-Source: ANB0VdYgDvJXVQsLVqHp0w06J07wJ68IZytOlorX1J8BGr8hjrEOO5fkqbrNaVprZzcqE1OvI8aRlw== X-Received: by 2002:a1c:8e04:: with SMTP id q4-v6mr7389406wmd.150.1537535170683; Fri, 21 Sep 2018 06:06:10 -0700 (PDT) Received: from inc028000032.lancs.ac.uk (inc028000032.lancs.ac.uk. [148.88.228.92]) by smtp.gmail.com with ESMTPSA id c15-v6sm3278702wmb.2.2018.09.21.06.06.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Sep 2018 06:06:10 -0700 (PDT) Date: Fri, 21 Sep 2018 14:06:09 +0100 From: Willy Wolff To: Zhang Rui , Eduardo Valentin , Daniel Lezcano , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] thermal: power_allocator: remove early break Message-ID: <20180921130609.j3esni6xwhi2ew7d@inc028000032.lancs.ac.uk> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If a trip of type critical is defined before any trip of passive or active type, power_allocator governor will not switch on. Signed-off-by: Willy Wolff --- drivers/thermal/power_allocator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/thermal/power_allocator.c b/drivers/thermal/power_allocator.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_device *tz, } } else if (type == THERMAL_TRIP_ACTIVE) { last_active = i; - } else { - break; } }