Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp836635lqt; Fri, 19 Apr 2024 11:50:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPSN/Bg/aZ8f/v/qtIDEO+Ut+CA63RlbDDZMnTbI/pXE+TOdCjAr5I/TBHk2Nyukp2hVbwXfVIGPzq1u7uen7WlhKXOd1Sze1xUAxu+g== X-Google-Smtp-Source: AGHT+IFhfrnYxe8rwfeFnB9ob4b8cZ/aKns+mwYp29jMeES7ek7njgnHKPEcEs1c/eLEEm7nfRHh X-Received: by 2002:a05:620a:126c:b0:78f:1709:3c84 with SMTP id b12-20020a05620a126c00b0078f17093c84mr3176734qkl.9.1713552612271; Fri, 19 Apr 2024 11:50:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713552612; cv=pass; d=google.com; s=arc-20160816; b=eo7T2vYxdJH4432VzS0XSxSJzoCk8dg9m3YqG9C1kj/sP4fREy7wUsYAJlAN/8N98o NE/PcAzxUPkG6Pk/95SobajmLkCimg/H0AQyXnz+7+QdYYHmSAYjQF8hh+9Vx8HqY5to 3ozoKmYhwPjuicsz2kMrcb56Gv7WCD+zt6dTMiSjICHVTs4CqTcopFgvhaeEhjt/MiMt InR084KLapfo+816aNY2dhIpcRHwgNV/JtM0WlO3JoHFPMM/k4W9zfRaO99k9pqYT57U Ielk1rI/iR9Fr9X+Xjw2dECeLdvq6817o9Tp1U7JkOiw1Wa5Crq7+4MjyPbaL+qsGx+d zjow== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=v7m0qFtVhV8WxskHFsx26NC12X1cXZd/2G/X9MbEU54=; fh=NWbihT0n2LVGI0eIabKMMzs0D4KhesRC0I1HJGdvI0I=; b=fOQlPoYSFSsSsgdh5KE+X3Vo5OhB6B4lkqJH4eeey8BMYCT9tcRFGbkvIYD9RqBTpg mh51jvBkesLfUH4q4MPT7tPTFEOE6vUR+JVw9U4FipRjQaAFypdAmyTd9hE29f8wAlUZ UJNZml1QSxXuDV8875vygaPacBzHi36k9bcSpEO4m+FS4nwSWYLsX8Own/nxo9GEcrN3 WTp3Q90Z874QFkCCHsBUWeFo5AJyhr0prpx5vRcRvuJcnZ9hWJZPrcfDEHFrbFFAWi9e k6A9Y6LIfegwbzO9YLFlm9ZMSnX2PI31vWwdp3p0FZwHvVB/pbFKI6e1k9zOCSGdA3Fs PuCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-151882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ee25-20020a05620a801900b0078ec8288b45si1192382qkb.377.2024.04.19.11.50.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 11:50:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-151882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BCCFE1C210B6 for ; Fri, 19 Apr 2024 18:50:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C50212E1DF; Fri, 19 Apr 2024 18:50:06 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 037AFD268; Fri, 19 Apr 2024 18:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713552605; cv=none; b=EbpHz0/t1jQ2Xdx1Lh0IhawOlSBwUVM9UmG5N6yOa/degVyTcFsVEYS1dkVTgJoIh0X/SDZAbe04L9tSpFmkFZh2KKgGNC9kWvKG9MjT564JcJBDVdR7HB0YKP7Py0+EFKS6PKmA4aUIN+POEfyZEubb04+8TIU4Jdz52B90Jao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713552605; c=relaxed/simple; bh=1ggBmLkPz+ipDBQEkORKrE3vtL6SmwmuVgCydJ99IsY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=J82+jNywPOG3yWbU++fFClo/PtzC7Z3cM/ERbTKyB/XyGoD71n8KkaDqnluc/6Q5WGjgAdbaW0Vk0z6uOD6rtx+cYmdmyFAqyEUKAVPr41bMI6MqIV+1DOh4GiY4LdgP0QPqTW8yXMkkzGPTCVEGNypy16zfSj/ZIthInpO4/38= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C7D352F; Fri, 19 Apr 2024 11:50:31 -0700 (PDT) Received: from [10.57.77.69] (unknown [10.57.77.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8B2263F64C; Fri, 19 Apr 2024 11:50:02 -0700 (PDT) Message-ID: <80a764dc-b54c-443b-9832-977ab9f6d7cf@arm.com> Date: Fri, 19 Apr 2024 19:50:09 +0100 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 15/16] thermal: core: Drop the .throttle() governor callback To: "Rafael J. Wysocki" Cc: LKML , Linux PM , Daniel Lezcano , Srinivas Pandruvada References: <13515747.uLZWGnKmhe@kreacher> <2701448.BddDVKsqQX@kreacher> Content-Language: en-US From: Lukasz Luba In-Reply-To: <2701448.BddDVKsqQX@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/10/24 18:42, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since all of the governors in the tree have been switched over to using > the new callbacks, either .trip_crossed() or .manage(), the .throttle() > governor callback is not used any more, so drop it. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/thermal/thermal_core.c | 11 ----------- > drivers/thermal/thermal_core.h | 4 ---- > 2 files changed, 15 deletions(-) > > Index: linux-pm/drivers/thermal/thermal_core.c > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_core.c > +++ linux-pm/drivers/thermal/thermal_core.c > @@ -310,15 +310,6 @@ static struct thermal_governor *thermal_ > return def_governor; > } > > -static void handle_non_critical_trips(struct thermal_zone_device *tz, > - const struct thermal_trip *trip) > -{ > - struct thermal_governor *governor = thermal_get_tz_governor(tz); > - > - if (governor->throttle) > - governor->throttle(tz, trip); > -} > - > void thermal_governor_update_tz(struct thermal_zone_device *tz, > enum thermal_notify_event reason) > { > @@ -418,8 +409,6 @@ static void handle_thermal_trip(struct t > > if (trip->type == THERMAL_TRIP_CRITICAL || trip->type == THERMAL_TRIP_HOT) > handle_critical_trips(tz, trip); > - else > - handle_non_critical_trips(tz, trip); > } > > static void update_temperature(struct thermal_zone_device *tz) > Index: linux-pm/drivers/thermal/thermal_core.h > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_core.h > +++ linux-pm/drivers/thermal/thermal_core.h > @@ -32,8 +32,6 @@ struct thermal_trip_desc { > * thermal zone. > * @trip_crossed: called for trip points that have just been crossed > * @manage: called on thermal zone temperature updates > - * @throttle: callback called for every trip point even if temperature is > - * below the trip point temperature > * @update_tz: callback called when thermal zone internals have changed, e.g. > * thermal cooling instance was added/removed > * @governor_list: node in thermal_governor_list (in thermal_core.c) > @@ -46,8 +44,6 @@ struct thermal_governor { > const struct thermal_trip *trip, > bool crossed_up); > void (*manage)(struct thermal_zone_device *tz); > - int (*throttle)(struct thermal_zone_device *tz, > - const struct thermal_trip *trip); > void (*update_tz)(struct thermal_zone_device *tz, > enum thermal_notify_event reason); > struct list_head governor_list; > > > Reviewed-by: Lukasz Luba