Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp290212lqd; Wed, 24 Apr 2024 02:19:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSQDPpf4QTSdqsqdUaJC8/scojI/5Npz9+p9tgndBTUmqRfYZHn+GxueA5ggbRoZSRSjBj55ASXCIDFLnCODk1nldwlayaHBLHgc1tSw== X-Google-Smtp-Source: AGHT+IHTiQzYNNeYrYqRoWNymgIOFBdU4mqy7FcFX2zj1ZhPTFivybMPZhepWZP+gBZrmQEqtdfN X-Received: by 2002:a05:6870:d1d5:b0:22e:c6b2:849e with SMTP id b21-20020a056870d1d500b0022ec6b2849emr1909857oac.9.1713950351826; Wed, 24 Apr 2024 02:19:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713950351; cv=pass; d=google.com; s=arc-20160816; b=rIUHX6x75dDcynWTq7b+23yr3KfPX1DMlRLiZgI6BhsspQK8BVkWVmoJleNMx69rt7 B732n20ngUJgWKdQgn9vA9KiUmBGs0NHOpPBLEtBjM4OCQV1dFohVY8ZmnWrRWDCCXNa OnKz4JyV+sK5Qsjyl4AQVVX84r30WtDHX3+OoCL721wvFX/dICkK8FFGeVh/Z0ZI7gek 5RvbXaCh+lys9SNUKry0L5cRONacrytrACMaDz0oWPqYy02gPGJbdBwq2OLvu/kGA+eR CPAuXheFbBWtjAiWiSQgSHfdeWlEGYzXniJEFv2Tq3tck+/UKDiWcqhfdrT2OMto/HuN 6DrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NooyyRf4E8zJBxfzPXqF1R/V22BGn4ie5pOTp1AGeg8=; fh=84LCg32RkXLWsSeWDIlz11Tm4I6NbjjTqOs9np55FR0=; b=rNx8NKg5H/nr3UGj8olG5aI6dZGuqYPAcViU3kCQeSm5wsN78jONqH3SoO80wlNFWs 7SrtiOsOdAFzfBhvFiplTf9odEPpuL3jBoC+qHvw6K+8zo2fJxq4QvKZ1jYIHTsC7kpC vmqbVIQBccipkRUFH6mPCix1ePUszQYfAecerWi4kibu0gTDcEZRrRlB3PizhGxPC0IR JmMJAFyTKy6gJlRluX89b16jSTVl1GFAnRMGOYwEfZ1emy5qQyFNvWmsaKOvYf4c51T2 FKy28zwpnWBjhW5mWlhDSlDWxDBRY9x4KnEC/ikR/enPQ2/MFSVUMLwRNC4XXf1VLe56 VxcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x93+mF6v; 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-156616-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156616-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w10-20020a056a0014ca00b006eac82adfd4si11270690pfu.152.2024.04.24.02.19.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 02:19:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156616-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x93+mF6v; 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-156616-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156616-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DC5AD2895C3 for ; Wed, 24 Apr 2024 09:15:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B401158A39; Wed, 24 Apr 2024 09:15:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="x93+mF6v" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 7B78D158DAC for ; Wed, 24 Apr 2024 09:14:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713950101; cv=none; b=F2miAjzotC9GVehF2RwNLWP//TgwfKRF/I6rUnt6vmN/TcodHqOMJkFNXHapoC5ss80jbo98lzQelg+UHnQsgjmlE14fWRIKmgXvW1HiHHx1Jm5gomQSPFvI7ZbDlUTzY/iaj935LDOtKrN8nhjcPyQHmUNzfgK0jAs2iazL7XQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713950101; c=relaxed/simple; bh=r8/8rUljBFL5uy21qYnpw+9WCvbmX6HKzPwVvP5HhE4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eH4iDI+oPR9LQ4rIRc4ZQpFcDLXp8Lu9KhcbUX08OjvIIGR8lyUbhpyw5ErDLdrNjnbmZjbu0BBziQ5H/rkYrxTISQpoWh6f9YELMUa6xD4JSud67FxIME/lLzgOU8mI/YeUyKNeCAiNEyPvOVA5IokJ6jEcKri4HxIJ6zoLj5w= 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=x93+mF6v; arc=none smtp.client-ip=209.85.208.170 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-lj1-f170.google.com with SMTP id 38308e7fff4ca-2db17e8767cso84745211fa.3 for ; Wed, 24 Apr 2024 02:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713950098; x=1714554898; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NooyyRf4E8zJBxfzPXqF1R/V22BGn4ie5pOTp1AGeg8=; b=x93+mF6vAOUryHz8PFWITdeeXyoQ57JLRq7nQWgu6nX2y5FI8I5muX3Zs+1cc96dMN Q2JmW+KGSgNVqb5W+Q3D044JXSnkNSuACnz7AsfCAi/ZYPQiXqwWst6crNHAq4RRiFGA k3oS4ATtVd/xM9vc6b5p1867O2MPuPFGnq/0z8HIepyBPbbtS0XlGWMqChuJGfmBrF2a Jzja8tEf7QsA539P+38YVIEQ6eVrzyCtdtK/mfysfyEGmkF+fQ27HRwNIUsXpY6u5SvL grBleQPLJ322fZAwxOkSkC35ektd3sOdANUouk64T9vfdFw8BjbjP4vPH1Hy5yaj14tL VcpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713950098; x=1714554898; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NooyyRf4E8zJBxfzPXqF1R/V22BGn4ie5pOTp1AGeg8=; b=BWb4v6aqVNDymZ+YVl3rHpdLvzcT7QXkvyK4v7lmWafhSgP2062JuXDVn0A5SndYfL HYzS4V5hJx3ZiDztqOtcTACdawIlAdWJ0ww+WCWkNxLoqAkPefPbgMJ9ikQ6BBS3QhDm PuRzc/ZW0rmxDCXbBb2ICi5kxGgyYt1B2XsoKDRPsEOL8APqXFaUKX5anL399q6Nw5R4 lZqeot7nm0T+0PZ00Q66dRIflRK6t+jLUkbnueNZAd7MytckCakUSB2jUd7pH63wXgLF OHOpBjgjBXgV0smwIhv5mKilh0D7o/IGYmoMwQIeB2gOdkhPNNXwH0xqOmElbT/8QhNG 3CRw== X-Forwarded-Encrypted: i=1; AJvYcCWLNdvYP/vuRfGTyeBBAOrv+zFWc6fEU1Uhc/+0WYfVKJK6/wjsYsbzuP09AttcvRAeq3M14fqCb5lB/tQzhUwpob9dHWYe1CDwrOiS X-Gm-Message-State: AOJu0Yz9f286zqUefqO5vb2fzWWgRlA33yg7rrMaXcptgaYYHY8Ou2Kd CkJZepjRsMaqkLQFZx1MEP0u9Z/iXpbEhK508GkQgCdNPhfuu7nKSLctHnkfx5Q= X-Received: by 2002:a05:651c:1043:b0:2d4:54f2:c409 with SMTP id x3-20020a05651c104300b002d454f2c409mr1089507ljm.38.1713950097610; Wed, 24 Apr 2024 02:14:57 -0700 (PDT) Received: from mai.linaro.org (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id p8-20020a05600c358800b00418f72d9027sm21018608wmq.18.2024.04.24.02.14.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 02:14:56 -0700 (PDT) Date: Wed, 24 Apr 2024 11:14:55 +0200 From: Daniel Lezcano To: "Rafael J. Wysocki" Cc: Linux PM , LKML , Lukasz Luba , Srinivas Pandruvada Subject: Re: [PATCH v1 14/16] thermal: gov_user_space: Use .trip_crossed() instead of .throttle() Message-ID: References: <13515747.uLZWGnKmhe@kreacher> <15186663.tv2OnDr8pf@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15186663.tv2OnDr8pf@kreacher> On Wed, Apr 10, 2024 at 07:03:10PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Notifying user space about trip points that have not been crossed is > not particuarly useful, so modity the User Space governor to use the > .trip_crossed() callback, which is only invoked for trips that have been > crossed, instead of .throttle() that is invoked for all trips in a > thermal zone every time the zone is updated. > > Signed-off-by: Rafael J. Wysocki > --- Acked-by: Daniel Lezcano I would also consider removing this governor which is pointless now that we have the netlink notification mechanism