Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp787371rwb; Tue, 4 Oct 2022 10:35:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7LrUevvYIvDjDZaexf9L8/S6FpsNN1JfdTSfFVyWU5Xa+LegeaJzgifPU3TDKIexLI9f7v X-Received: by 2002:a05:6402:84d:b0:454:f41d:6ccf with SMTP id b13-20020a056402084d00b00454f41d6ccfmr24435513edz.129.1664904909888; Tue, 04 Oct 2022 10:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664904909; cv=none; d=google.com; s=arc-20160816; b=ih/75PXIhDfkco7ITnHtUZevPWRq05hdcTpDRm+ocaJLgx0ws2HoTjCSKdw4fHCogQ qv3sTWPRehk21nLiAqr2rQMPkqEh7Usxx63So5RTOFZ7alU90uTEGILTTa5kFvmYRChi 4Rjo6moq3XpmtyIBOi/q+3GlybIetgXJEALO1fXOXxlEbZjCy2Pz3s0x5eKVuGyRfW0j qG4gb+Nlni1B2H1Cde+Qq7pVFH2zCJo47f06glLtzmjVLu8zARf1MZoIGDa7AugPAMLi w4lOk6WdOiQH2rF9m2fcOWm365CeP9nDrXWwte5jwhOgTyEdRZIsJA3NOWXOqOikW8Ao 1rng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=m/YyTjuq72jPuEDAkHmrIcGfQEw89UamE4234MBXV7M=; b=BjNlA+X5Y24x47iWGUGe1bHBlU+JXRKh3FZMSdT9RtBsK5+d8Wy7TbFVYHjMwGi1we HuFOpIfJ2IEw43hzZjcg3xNbB6SsABNp7hCmJVOb4QAxN3oVmjBl+RF5GertzWU3L0ep Qm+iRaS+jGhDD6jkTum86Hf8mwuzZBAlb58oTwngjSapSHQOgKnDh1RcGZXAdvBfwIzZ OYE/FSLDc5ajVpmwv8Fo9esU7J/sdIiRlMBCzI28zqEk/lOUFllq40zKo4jSZfByhedC K736TadQYCUAM1wHc/DgSiiX3sPujSV/xWXDf3BMvyDXHHaBY4opk1JTpm0UQjG4pHOO i1zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uMNscTXf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a23-20020a05640213d700b00458d4f86228si6700589edx.296.2022.10.04.10.34.44; Tue, 04 Oct 2022 10:35:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uMNscTXf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229771AbiJDR1S (ORCPT + 99 others); Tue, 4 Oct 2022 13:27:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbiJDR1N (ORCPT ); Tue, 4 Oct 2022 13:27:13 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D716A647EF for ; Tue, 4 Oct 2022 10:27:08 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id j7so17021317wrr.3 for ; Tue, 04 Oct 2022 10:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=m/YyTjuq72jPuEDAkHmrIcGfQEw89UamE4234MBXV7M=; b=uMNscTXfVp1XcvvH3eELBtEjbKgaXl4c6QBHfJoOtBNGqoIT74k6Z+iv7KETLsf/+z /eZxN1xc4aU+VLXZt8wrd0EPElxdHLvBPS7pbMgOz8sfXGFKaJP226csW7xKnNFx5/ky jPNpNdkvnaNtJGAOQr5Mppd7vhvpMmRL5qil2FcFdnGYJU8zWjq+WKGF+kkJhps1wxyg jSKMlAAX4xteHY09iSnwCGY1+GoxMz4g8ShNwXiV0H4nbYSLGkMyF5zel8RIqPx8SWMw 3O+nv907n1rElz7mH2w29j9bCRrOT7e3zhzKVDcqbUsBfBiNFZzXjVz+Ge4dVceY5wSG 8PtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m/YyTjuq72jPuEDAkHmrIcGfQEw89UamE4234MBXV7M=; b=2H0+jo3XOL7Q6vD4iL5mkNGKrnz6Ezd5gTPPe5RbALVoz1mNSz9aMGhkS6eF3cje65 ZXh8rhOa1/7sL6ERC8XzQpG4MGHzzH9ELmA7O5YZngjQObRoTTha2C0TSX/wmlJWbC9k Yraa91hWmrxVzASo5udyzujuLcv/Wm8FABPhJA2MNUwePC0AJm0vyOexM6OeFrJ2zgx0 F/lJyD26Iou2hLknFpKGtckkNWRNhwd7qG1gQpaacQCLlMxxDetXNFJqPrjZW3Rz/vp2 7NNx8BvetqM3w6yHk2c27BSKSuINIo4KN1oZMrIVC6J62ugzuVcdFfcZE6nF9hAbWqMs 2asw== X-Gm-Message-State: ACrzQf1lTLRodZlPOOMPhHW4AJbef85KqqYAHj0R9fqkUgkL7xrROpX4 RsiwvxDvSBNIickT9Da7p2q5PA== X-Received: by 2002:adf:f911:0:b0:21e:c0f6:fd26 with SMTP id b17-20020adff911000000b0021ec0f6fd26mr16849049wrr.361.1664904426795; Tue, 04 Oct 2022 10:27:06 -0700 (PDT) Received: from mai.. ([2a05:6e02:1041:c10:c456:8337:99aa:2667]) by smtp.gmail.com with ESMTPSA id l19-20020a5d5273000000b00228dbf15072sm13060941wrc.62.2022.10.04.10.27.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 10:27:06 -0700 (PDT) From: Daniel Lezcano To: rafael@kernel.org Cc: linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC 0/9] ACPI thermal cleanups Date: Tue, 4 Oct 2022 19:26:49 +0200 Message-Id: <20221004172658.2302511-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <12068304.O9o76ZdvQC@kreacher> References: <12068304.O9o76ZdvQC@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 The thermal framework is being cleanup by changing how the thermal trips are managed. In this process, the ACPI thermal drivers deserves a big cleanup in order to use the generic trip points. This series, which is still work in progress, has been tested on an ACPI based platform. Daniel Lezcano (9): thermal/acpi: Remove the intermediate acpi_thermal_trip structure thermal/acpi: Change to a common acpi_thermal_trip structure thermal/acpi: Convert the acpi thermal trips to an array thermal/acpi: Move the active trip points to the same array thermal/acpi: Optimize get_trip_points() thermal/acpi: Encapsualte in functions the trip initialization thermal/acpi: Simplifify the condition check thermal/acpi: Remove active and enabled flags thermal/acpi: Rewrite the trip point intialization to use the generic thermal trip drivers/acpi/thermal.c | 670 ++++++++++++++++++++++++++--------------- 1 file changed, 433 insertions(+), 237 deletions(-) -- 2.34.1