From patchwork Tue Jul 25 18:06:37 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: 125768 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2661531vqg; Tue, 25 Jul 2023 11:36:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlHjgpgxmYGcGn6xoavjZIuJiAfZm6doSmWRGGYA2fHBipXbwu7vsP3gvtUWlOERDFbnQ9vZ X-Received: by 2002:a05:6a21:9988:b0:106:25b3:2f92 with SMTP id ve8-20020a056a21998800b0010625b32f92mr13541815pzb.52.1690310172242; Tue, 25 Jul 2023 11:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690310172; cv=none; d=google.com; s=arc-20160816; b=wWhSyepVpvn3HmWEuCbjILrw58GyvNAasB3xaiTex4/2iDApO/fK7eGjC9e89ItAjM XSt8+6FhYDs0mfXnigg3AcE5XMXAJTfwfUN+Tn7jCrqfLdmDML7INkBVi6ZElm20oe43 GaO6jrBd+csN2n9AI4TPI3cgfnzhozoxv8v4QKOMDObexN3HUoXWsbrzYpRphiNOOaZw sR6xA9177YnzZHya/Ygq/wJ2H2VH4Yz3Tj7LjVtb3jUmVhYmILCYKUfXSTu4CiHbYmOE eqSOBKHH81MavzVL1bHaLnfMWAhW69XhrnWl88pBVGGTh8RW9HyobjbkxcSAmtCGYW6g +5kg== 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 :message-id:date:subject:cc:to:from; bh=xIqvK7YdmxzKrpy/l4tVdHVWVQQq2rkcxNoo2+zB9I4=; fh=tRVF8+lda9bdQSEp/arj7/6sGCI/pAIJZbkBFLyPtrg=; b=rSZJck8Bg/HW4wNpZeDo73n/wy6HXoxOnP23JiHLQ/++e+gYUWgZMWxD72ugSZDPtc wE7IAQ/7ezR86vXnT7GFL1RzKeH35dRknDk9GzDHxlHRvojAdZYrdgJRRUCvyDaHbwHO 4Jd1emedTQKZN0rb3V+7Bbzu/H4uo+2C092ptHJB0n82f4BBbELhXQhXCn2IinCATtou zcnu6hdadUJp3rbUr2f3Itk5BrTBugfLYwxwD7FYl3yW43ouvmkvo+nwFAP7Trm0kMtT lmQVPCo2kGUCHXV1FAamcNh3CYjjr/Y0abKavzRMUCXitbMKqMsxkxo+cokFei2WVoxp VuKw== 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 w5-20020a639345000000b00537c6c285a0si11799002pgm.167.2023.07.25.11.35.59; Tue, 25 Jul 2023 11:36:12 -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 S232579AbjGYSGo (ORCPT + 99 others); Tue, 25 Jul 2023 14:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232241AbjGYSGl (ORCPT ); Tue, 25 Jul 2023 14:06:41 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C2A21FDA; Tue, 25 Jul 2023 11:06:39 -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 58712f2710031aa7; Tue, 25 Jul 2023 20:06:38 +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 7CC58661B14; Tue, 25 Jul 2023 20:06:37 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Zhang Rui , Srinivas Pandruvada , Linux PM Subject: [PATCH v1] ACPI: thermal: Drop enabled flag from struct acpi_thermal_active Date: Tue, 25 Jul 2023 20:06:37 +0200 Message-ID: <2696210.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: gggruggvucftvghtrhhoucdtuddrgedviedriedtgdduudekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepffffffekgfehheffleetieevfeefvefhleetjedvvdeijeejledvieehueevueffnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohephedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomhdp rhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-DCC--Metrics: v370.home.net.pl 1024; Body=5 Fuz1=5 Fuz2=5 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: INBOX X-GMAIL-THRID: 1772418679590632785 X-GMAIL-MSGID: 1772418679590632785 From: Rafael J. Wysocki The enabled field of struct acpi_thermal_active is only updated and never read, so drop it along with the related code. No intentional functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/thermal.c | 6 ------ 1 file changed, 6 deletions(-) Index: linux-pm/drivers/acpi/thermal.c =================================================================== --- linux-pm.orig/drivers/acpi/thermal.c +++ linux-pm/drivers/acpi/thermal.c @@ -121,7 +121,6 @@ struct acpi_thermal_active { struct acpi_handle_list devices; unsigned long temperature; bool valid; - bool enabled; }; struct acpi_thermal_trips { @@ -1084,15 +1083,10 @@ static int acpi_thermal_resume(struct de if (!tz->trips.active[i].valid) break; - tz->trips.active[i].enabled = true; for (j = 0; j < tz->trips.active[i].devices.count; j++) { result = acpi_bus_update_power( tz->trips.active[i].devices.handles[j], &power_state); - if (result || (power_state != ACPI_STATE_D0)) { - tz->trips.active[i].enabled = false; - break; - } } }