Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2480114rdb; Wed, 4 Oct 2023 02:27:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5v4tj6jOgfeMOmsVhAAU4mh9NLxHPXHSqiuaWFkCFytPF5M57zWUb2G8WGgwcO24+GSDw X-Received: by 2002:a17:90a:3de6:b0:26d:17da:5e9f with SMTP id i93-20020a17090a3de600b0026d17da5e9fmr1593717pjc.1.1696411672482; Wed, 04 Oct 2023 02:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696411672; cv=none; d=google.com; s=arc-20160816; b=d/gzPVs7noWg5Uz8MTlu6w6Hs9dSegjtAxzqGd3ubmNgchaDWDZjJbwlAYn5R2gScc 5k4/tLIEhjlzGKGlKorhpE+gMPokE1curDOTNKAJr2qNYGGkeZXlQR6LylcRHukCzFAc 4GsGdeKhw83ItQPmo7QlQyqwKST1daJ6ciQS+qbSvVvZGX1232yx4ErvgzKKfcKD1fLo KjnnmcOdBfGgmEElbBlwkNiP2l/qETE9VmUTDjJaXnbozV9x9zW0MdieV2mXHQx6EX57 9cngwtpOaB6/F0HIKNSC4QGxHzLZvFZtLDdrM+1jXaom9FpwikCso8HOtz8CWKwTrmJQ TY+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GV07epPUhdpXIZJvIiHNiYuLVJzB4+rIWncb07cQYck=; fh=LHF/wjE3sYhc3wO+PrH0m4vXyB8MaRqRPmrPMg/Fgb4=; b=a8LMd+NIPPw87t+4WrDdkOgBXH0no0tsjL6wTe8Qh+Wi3J7X0A0jy/7adNxZRMNWKM j2tdvbnWTuIDsVXMJ4Q4NDbFE59MLduUfDJ/CQlO2cPMAxB9jBYdkfPcEDTujxUEY8Oo yW9wKg5xp0zIcbDKeOUGGt84jk8EnrUUXfOjhuHP28ArHJQnvSWIcCU8Hhtd2t2zU85c WRHzvhAIR+gGylIrYSmURvoN2Ax9gsdlAlBGvKdwcNKe5hZRr8uICexfbgiHLwj/kCaS 28g0EDo+YorjTgmFOkYdPLHyvxv/5Fb6NB+GFzdW7Y3Lx0eap/L+sNhxydtwuiYV1maa B2hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MRZnoeQ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q4-20020a17090a2dc400b002777d51e89dsi1151853pjm.128.2023.10.04.02.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:27:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MRZnoeQ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8FE9981E9A70; Wed, 4 Oct 2023 02:27:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241807AbjJDJ1t (ORCPT + 99 others); Wed, 4 Oct 2023 05:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241803AbjJDJ1r (ORCPT ); Wed, 4 Oct 2023 05:27:47 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23828A7 for ; Wed, 4 Oct 2023 02:27:44 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-313e742a787so402434f8f.1 for ; Wed, 04 Oct 2023 02:27:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696411662; x=1697016462; 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=GV07epPUhdpXIZJvIiHNiYuLVJzB4+rIWncb07cQYck=; b=MRZnoeQ+khQZhRHvI1Se/LvEa/r8QQl4OqSpf71hRo+OpzJPATmQE27WyOaTVvyqNA O02KiZsP+8JLcTjs2O97d4mLOPUIFL9MwfwkR8phSAuBByV2lzxclUQAzVhKbbW07iaQ WK5IYHLAjs9Teo4oSrqL8JuCvZuH6WCjEIjpJQR/zxgb2BJu6tekENLbDLfwlK0X8cGM hm77yLP9pMUyvp44R3YjTJape2xDVPNLBco1ldfpK3hgYlSChX+3hqDU7Bk2+WsWUJME rM85lAmZ8kb9RbbrIe2V8cThQ2MfkPnSpktCvsyAE/cOPI92WPIVViZCKo/NMoS63T3+ s3sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696411662; x=1697016462; 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=GV07epPUhdpXIZJvIiHNiYuLVJzB4+rIWncb07cQYck=; b=ILfaoTkWlQrIUXBrTM1CLLYmg4hiyKgDuhikjbbxN2BKvR8nfaP5pwkgA1a9u0sahY tZ3VLkBLF4TmDc088FCEamuGrVfmbU4JSQBVEkSVKanA+8sZawV3HvKwDNsnwJhpjFj8 rIb+INW6fujYq48TCsfLLw+Ke7ApUIx7hy6mvU3F7p41WjNI93J12zZzur0rl2qqQe9A 5C4NYN5XVzqsGjofcSyRYCdPSD9NAGM162BPgxbgNNsq7RsHAkpUUUmq0dNmfBueyEE4 CFSeZxAIgOyPTGAQzTed/tFVUaSaTYxqWwOYzSmcFF2AoSBqlPQ8EgAdod3USujnzzkt NzFg== X-Gm-Message-State: AOJu0YzaAn1lcOCSfBbAZyP8sSrLooDWoCjnNBBxHFycWysv3qwza2RQ 7ys/kWhsztPY858PXrmGTNvQaA== X-Received: by 2002:a5d:4691:0:b0:31f:335b:f436 with SMTP id u17-20020a5d4691000000b0031f335bf436mr4531952wrq.22.1696411662543; Wed, 04 Oct 2023 02:27:42 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:a496:68ab:9165:6f16? ([2a05:6e02:1041:c10:a496:68ab:9165:6f16]) by smtp.googlemail.com with ESMTPSA id f8-20020adfdb48000000b0031ff89af0e4sm3526249wrj.99.2023.10.04.02.27.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Oct 2023 02:27:42 -0700 (PDT) Message-ID: <264060f0-0cbc-d9ef-cc4f-cd327d5725b1@linaro.org> Date: Wed, 4 Oct 2023 11:27:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 5/6] thermal: core: Drop thermal_zone_device_exec() Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Linux ACPI , Zhang Rui , Srinivas Pandruvada , "Rafael J. Wysocki" References: <4846448.GXAFRqVoOG@kreacher> <7586518.EvYhyI6sBW@kreacher> From: Daniel Lezcano In-Reply-To: <7586518.EvYhyI6sBW@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:27:51 -0700 (PDT) On 03/10/2023 15:25, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Because thermal_zone_device_exec() has no users any more and there are > no plans to use it anywhere, revert commit 9a99a996d1ec ("thermal: core: > Introduce thermal_zone_device_exec()") that introduced it. > > No functional impact. > > Signed-off-by: Rafael J. Wysocki Acked-by: Daniel Lezcano > --- > > v1 -> v2: No changes > > --- > drivers/thermal/thermal_core.c | 19 ------------------- > include/linux/thermal.h | 4 ---- > 2 files changed, 23 deletions(-) > > Index: linux-pm/drivers/thermal/thermal_core.c > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_core.c > +++ linux-pm/drivers/thermal/thermal_core.c > @@ -493,25 +493,6 @@ void thermal_zone_device_update(struct t > } > EXPORT_SYMBOL_GPL(thermal_zone_device_update); > > -/** > - * thermal_zone_device_exec - Run a callback under the zone lock. > - * @tz: Thermal zone. > - * @cb: Callback to run. > - * @data: Data to pass to the callback. > - */ > -void thermal_zone_device_exec(struct thermal_zone_device *tz, > - void (*cb)(struct thermal_zone_device *, > - unsigned long), > - unsigned long data) > -{ > - mutex_lock(&tz->lock); > - > - cb(tz, data); > - > - mutex_unlock(&tz->lock); > -} > -EXPORT_SYMBOL_GPL(thermal_zone_device_exec); > - > static void thermal_zone_device_check(struct work_struct *work) > { > struct thermal_zone_device *tz = container_of(work, struct > Index: linux-pm/include/linux/thermal.h > =================================================================== > --- linux-pm.orig/include/linux/thermal.h > +++ linux-pm/include/linux/thermal.h > @@ -340,10 +340,6 @@ int thermal_zone_unbind_cooling_device(s > struct thermal_cooling_device *); > void thermal_zone_device_update(struct thermal_zone_device *, > enum thermal_notify_event); > -void thermal_zone_device_exec(struct thermal_zone_device *tz, > - void (*cb)(struct thermal_zone_device *, > - unsigned long), > - unsigned long data); > > struct thermal_cooling_device *thermal_cooling_device_register(const char *, > void *, const struct thermal_cooling_device_ops *); > > > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog