From patchwork Sun Jun 4 12:19:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 102983 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2113528vqr; Sun, 4 Jun 2023 05:28:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6R0sQVI4+XxxulK8d8PlRX6md1uKWMLYnp0t6WNFo648yqzUVpMRTI6G//hNwBn68RpQrq X-Received: by 2002:a05:6a20:a1a0:b0:10b:bf2d:71bb with SMTP id r32-20020a056a20a1a000b0010bbf2d71bbmr2835694pzk.27.1685881691154; Sun, 04 Jun 2023 05:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685881691; cv=none; d=google.com; s=arc-20160816; b=pS6FIZvYc6g7iP7lgaiJ0PBR0aHn3O7IAX3LKmYhFwFF7iJkLhnUd1O4wCbT1beuAj f50/1BFy8qGuwrQS0KIuGVspTYGBzcKNuGt7gFK5rzYYizcBh90SSkcW0p2bVnKZX22e iQurP9L083/dM7sRTiuQc3HH2bUzOHJKd1D5DXaaKEfPxIo8jpRaXRKSReKecU9QCtt2 it4PfhkBv402YHoQ02O2PWU/4cqsr45e+OdsKugOn/A2gM5lJ5ms/xmnhA4I8HmepBBE +JVNCVfPeZsChM0QzyBgDNOvueYLVrQ/ydG2jhY53fR4swri7jc5XCigdK+nH7O/i2Wk arzA== 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; bh=8yBJvfSCI9+OAGJLeNZCzR3mhw2q0N9TUxHUYLFZMRQ=; b=pj6s1HCh18HRrHHkZ70kNpwouN+aWftDNrejXGHBcp6zF2EeL5irBxeTuVP7l2iAm2 ENsDsOJJ1xe4ynJyCxdQDDCwS2Z1kmMu5D8lwndHYgAfhJn6f/Jw3Zt2fWqzxitqvSAD swObdGMfiwQbS+/QtSl9KFJtcNuGImh1KDXfGh80zhsFkkr3ApUPKop810Vt8zHz8VQK 6twllEGnixiYQT8qcQJV7Ox1q9UdJF3GnVcLkkin1xg7Nt9IBK06c9lz+q/nn412nUeS woR2ymBRoOIj8CcjmhE5DY1qH3E5+3Z6LpltVMpMDbqegw8qGvx9M+9mQd5ak2GG9+3S iprQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y24-20020a637d18000000b0054290a76b1csi4044758pgc.112.2023.06.04.05.27.57; Sun, 04 Jun 2023 05:28:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbjFDMV3 (ORCPT + 99 others); Sun, 4 Jun 2023 08:21:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbjFDMVY (ORCPT ); Sun, 4 Jun 2023 08:21:24 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DADDC4; Sun, 4 Jun 2023 05:21:22 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.2.0) id 337a253912c127a8; Sun, 4 Jun 2023 14:21:21 +0200 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 8C654963C55; Sun, 4 Jun 2023 14:21:20 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Zhang Rui , Daniel Lezcano , Michal Wilczynski , Srinivas Pandruvada Subject: [PATCH v2 6/7] ACPI: thermal: Drop struct acpi_thermal_state Date: Sun, 04 Jun 2023 14:19:43 +0200 Message-ID: <3443012.QJadu78ljV@kreacher> In-Reply-To: <2703629.mvXUDI8C0e@kreacher> References: <2703629.mvXUDI8C0e@kreacher> MIME-Version: 1.0 X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeljedgheduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdffueeitdfgvddtudegueejtdffteetgeefkeffvdeftddttdeuhfegfedvjefhnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepiedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepuggrnhhivghlrdhlvgiitggrnhhosehlihhnrghrohdrohhrghdprhgtphhtthhopehm ihgthhgrlhdrfihilhgtiiihnhhskhhisehinhhtvghlrdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767775079973421162?= X-GMAIL-MSGID: =?utf-8?q?1767775079973421162?= rom: Rafael J. Wysocki Drop struct acpi_thermal_state which is not really used. No functional impact. Signed-off-by: Rafael J. Wysocki Reviewed-by: Daniel Lezcano --- v1 -> v2: New patch --- drivers/acpi/thermal.c | 11 ----------- 1 file changed, 11 deletions(-) Index: linux-pm/drivers/acpi/thermal.c =================================================================== --- linux-pm.orig/drivers/acpi/thermal.c +++ linux-pm/drivers/acpi/thermal.c @@ -96,15 +96,6 @@ MODULE_PARM_DESC(psv, "Disable or overri static struct workqueue_struct *acpi_thermal_pm_queue; -struct acpi_thermal_state { - u8 critical:1; - u8 hot:1; - u8 passive:1; - u8 active:1; - u8 reserved:4; - int active_index; -}; - struct acpi_thermal_critical { unsigned long temperature; bool valid; @@ -152,7 +143,6 @@ struct acpi_thermal { unsigned long polling_frequency; volatile u8 zombie; struct acpi_thermal_flags flags; - struct acpi_thermal_state state; struct acpi_thermal_trips trips; struct acpi_handle_list devices; struct thermal_zone_device *thermal_zone; @@ -1083,7 +1073,6 @@ static int acpi_thermal_resume(struct de break; } } - tz->state.active |= tz->trips.active[i].enabled; } acpi_queue_thermal_check(tz);