Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3109081lqt; Tue, 23 Apr 2024 10:29:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW86018eypwEXNGPMSOLz2a1CUFLjMuAyrL4zcF9nvE+fZE/27CLAoMmSsyprWhVq6k3Kwvv28gMaPNrx0mEBmxSyeJkZajtoKbMoOuxg== X-Google-Smtp-Source: AGHT+IH+vrnovCTwtA4YzNSPu+BsSUPFgElfDTJ9a7APhyPHVxWhjxrRuYQaGAtdNc4X2iVEHx+z X-Received: by 2002:a17:903:1210:b0:1e5:1867:d9fa with SMTP id l16-20020a170903121000b001e51867d9famr111325plh.44.1713893341073; Tue, 23 Apr 2024 10:29:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713893341; cv=pass; d=google.com; s=arc-20160816; b=m/X4pWuYFoULHdPlSjAP25WRv8p8v4PnD858snKFV+aWakmqAcxdA4jgH8jAMAM4pa U25N80aj5B1bfQVXl15xm57Oz3FHBSrpo6aODUeuy4+t3ZSuHS+hG5eLwbAXX+qbKOtf /AELgh2blYtaRg/QCddwXa/Aus8tEc8CTUUMkc8q9k8p9JGVZvxJjF3Ih2bDdCj8RDKK BvmI8LZjafjkhDCD6A7XZ1s6hGAQGkBuOviEhOZ+o/RgFaLHJIcDx1slQi29RpwCLk9l eG1wLhBB3w8SVfsW6Cx5ioCFArUlgU3J0wfmLYmthwjwADe2FUMk2MmlubL6eVf33brK HbHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=IYlVF7FPON1rS0HsPp+bhBQxXwPY2zwFPgs8IBmULD4=; fh=7ScwuEoqpr+ZNK4Z60w3i5AVwGdoOahnHf1ln+4gLMs=; b=vMRG5Vh82Bt/gIvy4uD8tOpFLFPy++2E83Bm8pKumTcLUFSnR5KFz723ZvBUYuzsgs ehFo11cD5O2LxINcIxWtiVWaqJUb7waegZpsE4jmV6Su2pzTDweIoVTlIQZLBV3RIo2o 0A0DLYOQvS12MMpSAMb9IS1HiXo1cn7SRG2aJtTjOdXtx2ArvW19cLpKCufvbrZlv4I/ lhzBTZ6w8LqMPHTYwO3VTb0oH3jnVKCDWHRa4b/DXb9XMvPjCrA0wG9tHrRLNrotqgpj eETEpo3/5Q2l4cblrEk2OzV1ObI4M9pUweoi1idArT/0Wi2SiJy3e+9mkZMeLPp4v0dA BTgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HebvQkmg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-155627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id jw24-20020a170903279800b001e0c0123072si9439206plb.166.2024.04.23.10.29.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 10:29:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HebvQkmg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-155627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AB88EB279F2 for ; Tue, 23 Apr 2024 17:06:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81E7A14265C; Tue, 23 Apr 2024 17:04:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HebvQkmg" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3ACAD142634 for ; Tue, 23 Apr 2024 17:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713891871; cv=none; b=E7sDJya/RvAzKe0FU/HvoxqLp9vxIGuYC8fka+b08gVqHOZnCfdcBqflV2sXRGaBkD5e5ciLb7fyWMJeD8LNvSmpSyLge8Py9TECh0vkAT3JaARgPG/XCN1nkYGHuMw7HelpMArbd+tMzo1XgPcdXBK0GStJbfCdcnYiIRRW8vg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713891871; c=relaxed/simple; bh=wYBVJatJNPBvmSLtQoSAnOgDdXz1F9P4E2RBLfCbqRQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Oo5dM1RnYOkUIwK0Zq5Kf/MHWY1pszERd6tzp7kL+68sZYRZhvo7IyQQ64B1gZXSut8Tz1552WB+WbzxVZxLgguftq6nltFjpCa11Kc/QvClklHEkqKBVkY3jgCaLcMdKtAw8d6QuRNkF4Mh/pibVrD0ShZOXtD+/n5KFaNMtdQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=HebvQkmg; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-41a523e2888so18574465e9.1 for ; Tue, 23 Apr 2024 10:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713891868; x=1714496668; darn=vger.kernel.org; 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=IYlVF7FPON1rS0HsPp+bhBQxXwPY2zwFPgs8IBmULD4=; b=HebvQkmg25LDkABgpTfsYj7e/CRZr4cGeKxM6I7L+1VBCUxglgoQU6NXeGHtES7MIP SUwspmmFioQegMqyjvlSLLLuy6P3vmvTLZclAoI1jQdaLhmNYvDfrK3A7mzzjVJF4vvR gHLpCHWznoxyBUTu7x9Fde2fm2chK7As/bj4QZQhyx0Pj9Ie6XzvWxlfKxBTsX9TSycU 0PT+CcTEfEXnhXQ8ctACdWrvQ3AAkeAmDS5NktOce9NW16Mbrp+Rd/aQxQ2UgHyU/40e l5QWvRKOpaazCQ2cxsKI1x/BhmGxsf3s7z9zTfBaLhOUOKyYzLl/rS25wiJ6Yf4KLLqv dcZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713891868; x=1714496668; 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=IYlVF7FPON1rS0HsPp+bhBQxXwPY2zwFPgs8IBmULD4=; b=AjgwPXjOeFxn90SoM9pbJDO6H+0P/i0f+IdDloD4zUId8cMYLheMMbNwNrkAtV7kmx 4z0V/gQegwVnLo7hj8x4ohyYUtq8fWUWT9cN6M6waEysjEK4ZxYE4zp2jaQt2LCqgEGy N2AIKcICndX7qGIabCVNDsZg6r0iyhjpkaT2XBuZILVCLqKh/RXH5pF0L94yBvVGefEb YFdVex26BVAOaO8EmRq44JmWTHCZDcU8DyN5kmU/cuXwRSFff+ut7QJcj7Wl85Q4uMBq I4xBjk3YgpBzttZ/LK04GY1SugJLoXu4VDgacJVXtPR3IwRjZ30dL0555aFCqCiHKYaI BH0A== X-Gm-Message-State: AOJu0Yw3/PrpFZgyP8TupzsbKrtuOhqWEumTB+Qq5hkOzwx/c9btmzJp On2ylYxBTHIryFt061ZJE8Ky9ev8O3sOgk+9COAjfKGsKpiju/CsRgTsroKwlog= X-Received: by 2002:a05:6000:1b90:b0:345:a60b:989 with SMTP id r16-20020a0560001b9000b00345a60b0989mr11074794wru.67.1713891868590; Tue, 23 Apr 2024 10:04:28 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id g9-20020a05600c310900b0041aa79f27a0sm3735054wmo.38.2024.04.23.10.04.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Apr 2024 10:04:28 -0700 (PDT) Message-ID: Date: Tue, 23 Apr 2024 19:04:27 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 02/16] thermal: gov_bang_bang: Use .trip_crossed() instead of .throttle() Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Lukasz Luba , Srinivas Pandruvada References: <13515747.uLZWGnKmhe@kreacher> <2289003.iZASKD2KPV@kreacher> From: Daniel Lezcano In-Reply-To: <2289003.iZASKD2KPV@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 10/04/2024 18:04, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The Bang-Bang governor really is only concerned about trip point > crossing, so it can use the new .trip_crossed() callback instead of > .throttle() that is not particularly suitable for it. > > Modify it to do so which also takes trip hysteresis into account, so the > governor does not need to use it directly any more. > > Signed-off-by: Rafael J. Wysocki > --- Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog