Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp513494lqp; Thu, 4 Apr 2024 23:51:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUm643mlYihRcxNl1n6kzpy9EGyA2vnceEuhMLSKcuIribcLLaXK8HWfcBP8Iyyti+LlV8QVFfd/rug9vc97GBgXhj2+nqgeZ+Z2XoVnQ== X-Google-Smtp-Source: AGHT+IFVIAuuBSPZ+GUmCC2YdkaZt9buoxIFN3j5eZNEnNKy6Q8TRHkF6GISomg0yqJdwiHocCo1 X-Received: by 2002:a05:620a:2b9c:b0:78d:472d:f169 with SMTP id dz28-20020a05620a2b9c00b0078d472df169mr779790qkb.23.1712299890237; Thu, 04 Apr 2024 23:51:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712299890; cv=pass; d=google.com; s=arc-20160816; b=MI1BMAsJRtPb+HYawIqIjlIlGdutvTcj5+4/oK7DqiFeP499hrg+zx3dvP7mtP5PZ7 0hIwOkyIBn4npSMxbH/B0mos83Brtm+a7+Neli1o1z8nZwghKlO8OgIsM6p1WEe689ov LpVR6qo79p5xgHERDo+hpgZpSWu9izDoBcG+URsWl0ZXmD4q+wW+PAyZzVGdwKogukGD ah+uy8KqH5qAwNSrWAb2b4WMPIETt0+lXcOaoIKtFHR7g5foyKqucs21QVpN/PY3mjSC MdQy60UezvEJ0xELLnj54XBOL9dVjWfrBG3UTh7U3thgttGhkCphqk7hDN4nADcG3U0j 4Mog== 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=5/LaVfwoI2Gev4h8pd9kUELtSUqC9s7I3hRen4i8R0o=; fh=Vj0arn1/LVu9U7xfEG6l7doEjoMnuq77J6sC8rmXYP4=; b=LMOOmx50yKA0+GRYNnTFCP1UpihJBcsdsi9feCfO6lnmJ5c9gbcJzjAwfeeK/IttgS QmMdyJYURN1pR3Sq9s/UZU0mkSpoA8eYLGuQh9QeUf6VGp68YceNauxTAMD62CKGevhq 4YKWtw5G+Qumz/45QrUQW0C0KkNeom2nyOi6QE4M/aF/8TKDqp3zxuBETwQXmLLKuxxq Y3LQG/41++BtHQfT2kONtYhRByOysRD/A0O5Mu8CHmjoZBqraSzVuJtSskArnbV+4YMH TW9k2OMvU/ohaDvXZuMrYWQDY80/nR3oHaFSC5o0cKMpLnyD2AKmBdSg2xV3Wn40zZlN 7Ugw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nvinfKEZ; 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-132495-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132495-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k7-20020a05620a414700b0078a5705c10bsi1227090qko.34.2024.04.04.23.51.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 23:51:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132495-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; dkim=pass header.i=@linaro.org header.s=google header.b=nvinfKEZ; 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-132495-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132495-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D94301C21A0F for ; Fri, 5 Apr 2024 06:51:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 714D224B4A; Fri, 5 Apr 2024 06:51:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nvinfKEZ" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 B3DD21CA9E for ; Fri, 5 Apr 2024 06:51:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712299882; cv=none; b=BTfCIudh4pwIHPPbAezGyprRd9Mfwm/2I8M+wAJEqsBxtiecubNd+MxyxZ+xtNRqOCbH2kcld76pvPNf2sB638wL/jzC546nVPrpV3GG+dF9KS4FTQ7P340fBUdqy6cCbmMT1l849sihwM4H8BIJN+IQPQv+SAb2+TK8yR6/SFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712299882; c=relaxed/simple; bh=4oDVAHGYYcR/2l5FlZ2TZi7td9mGan3FkIWef+vpdkY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sm6uHK8HTEYKg2JEnoYNK8yMqK7OpH5szYM8JrPwLWnMLWvzl/d6oxb2wI1JuqGuMvTjTbOddPTEBJJk0KfN9nq9MJLh3GjMk/lt/QmksUR1+xD/Ng0F4qqb0TuerTFPEtNW1axznaEvV7WWbHRKd2STIukhPfcRtX4XZc+b5Hs= 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=nvinfKEZ; arc=none smtp.client-ip=209.85.221.54 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-wr1-f54.google.com with SMTP id ffacd0b85a97d-343e986aa6cso41445f8f.1 for ; Thu, 04 Apr 2024 23:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712299879; x=1712904679; 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=5/LaVfwoI2Gev4h8pd9kUELtSUqC9s7I3hRen4i8R0o=; b=nvinfKEZSzD5YmtTGtIpvZKKTHgnGpX0XmdiKh5nFqaZaDMLbChosTffNZoxAHYnrX ubanMps9gVtuK39aUh/RrF+quA+PVDIZwVn953gO1A5IOzFXATyIqTlf8Y6mfJdLU+6p 6VI3XZPV0yx1sfhraWlEQQSx+KaIO5kHDBUdqN2ZjFTlTTBhSNshFfc8RD5eLWWJQMNb kK1yq1bqKScNJ8+G2b4u9HB9vcRR53alY1zs4bTwsZZC1IeROLbf7l0LIWI94SyYjN08 KPIHPz45W7SIIP87kuybRkIKceALOThTsrBld1tAWqLtxill14E62qvwUhfJJbFY0H7A 8cCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712299879; x=1712904679; 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=5/LaVfwoI2Gev4h8pd9kUELtSUqC9s7I3hRen4i8R0o=; b=Acp3aZUVlZVfT37nWDT6DVPdFeb2iRYdr6a74nUWHtAimAEzzWjo/AjJaD4/eTPcC5 OeBwLI1YUHYU3hhkV2uwo2VJ52GwFjRLJDnnaUf2P6opH1/0mLWepOLQaMHmZmOebhb+ 9oU1vzNlefmRJtwHAUVsjuYG32TJINAlNBwrUFDgfxgBdspmTcN2pvXFu8s4IkKXdmja 9+yKIDLvf2o1JGiEUAXKMiLtBfNrP7gXPiVol+QY0PehEQEhPbLamtsVXwDjDigCA8X6 5u4VY/ubO9iBYL45rK0I6jR5frCHIK2Gd0AXcE9l5l21B8PjDumiBvNgxhzwJQgNR3Wj nCPQ== X-Gm-Message-State: AOJu0YwpOrP5rNMOrOsqNp1I4J2Ev5ReJ57TvhTytLA0Dw+W4vzvADsj aCamBDpyk41Z3ebtBd6dPx5ZgaPzkNLtDFqoq/2Yi7GArMUd+yGShmv8dXiw6n8= X-Received: by 2002:adf:f251:0:b0:343:77f4:e663 with SMTP id b17-20020adff251000000b0034377f4e663mr308655wrp.18.1712299879068; Thu, 04 Apr 2024 23:51:19 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id y16-20020adff6d0000000b0034335f13570sm1211624wrp.116.2024.04.04.23.51.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Apr 2024 23:51:18 -0700 (PDT) Message-ID: Date: Fri, 5 Apr 2024 08:51:18 +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] thermal: core: Relocate the struct thermal_governor definition Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Lukasz Luba References: <2725268.mvXUDI8C0e@kreacher> From: Daniel Lezcano In-Reply-To: <2725268.mvXUDI8C0e@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 04/04/2024 21:27, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Notice that struct thermal_governor is only used by the thermal core > and so move its definition to thermal_core.h. > > No functional impact. > > Signed-off-by: Rafael J. Wysocki Acked-by: Daniel Lezcano > --- > drivers/thermal/thermal_core.h | 25 +++++++++++++++++++++++++ > include/linux/thermal.h | 25 ------------------------- > 2 files changed, 25 insertions(+), 25 deletions(-) > > Index: linux-pm/drivers/thermal/thermal_core.h > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_core.h > +++ linux-pm/drivers/thermal/thermal_core.h > @@ -23,6 +23,31 @@ struct thermal_trip_desc { > }; > > /** > + * struct thermal_governor - structure that holds thermal governor information > + * @name: name of the governor > + * @bind_to_tz: callback called when binding to a thermal zone. If it > + * returns 0, the governor is bound to the thermal zone, > + * otherwise it fails. > + * @unbind_from_tz: callback called when a governor is unbound from a > + * thermal zone. > + * @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) > + */ > +struct thermal_governor { > + const char *name; > + int (*bind_to_tz)(struct thermal_zone_device *tz); > + void (*unbind_from_tz)(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; > +}; > + > +/** > * struct thermal_zone_device - structure for a thermal zone > * @id: unique id number for each thermal zone > * @type: the thermal zone device type > Index: linux-pm/include/linux/thermal.h > =================================================================== > --- linux-pm.orig/include/linux/thermal.h > +++ linux-pm/include/linux/thermal.h > @@ -126,31 +126,6 @@ struct thermal_cooling_device { > #endif > }; > > -/** > - * struct thermal_governor - structure that holds thermal governor information > - * @name: name of the governor > - * @bind_to_tz: callback called when binding to a thermal zone. If it > - * returns 0, the governor is bound to the thermal zone, > - * otherwise it fails. > - * @unbind_from_tz: callback called when a governor is unbound from a > - * thermal zone. > - * @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) > - */ > -struct thermal_governor { > - const char *name; > - int (*bind_to_tz)(struct thermal_zone_device *tz); > - void (*unbind_from_tz)(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; > -}; > - > /* Structure to define Thermal Zone parameters */ > struct thermal_zone_params { > const char *governor_name; > > > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog