Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3081467rwe; Mon, 29 Aug 2022 05:38:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR4OMlVfEUaJdBfYlyXfBEJ1768LbGVsA3i5sedTgLyXnDIxFOF4uOLFyKtUygopNm7p/tCw X-Received: by 2002:a17:902:b410:b0:172:c9d1:7501 with SMTP id x16-20020a170902b41000b00172c9d17501mr16458017plr.106.1661776697170; Mon, 29 Aug 2022 05:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661776697; cv=none; d=google.com; s=arc-20160816; b=HfELpt4rNCccPuCuj6ytsEjMjI6EAlXFESiQEEGbFvXn3+vHFLU0R3HA3chZ+p/Tmg dnPWIDge5+hJYsIp8Rp/PyshrHh9jpFNzDQ2GrQyr1gwIGsEzYItGXaJKxzBRFcMF90t 3tK62KHypOBBTJJmTgDC3kez9Dr4w+EBbp0SvlKx+sw8+PHjW8cEL79IGPmN2WEShc3M QeSTao0wt6MXYnwTWQSLFV9oH9JCx2ck4ebGqNfUWPVVzbwJEIZ+WlNsAjCZEQP31PZo i4syU48MuoMrzo01V8F3ihCIZeHNu/cXDLCGwfwyKkP/ubWXFuhpoiHeBNubleVTKLEz oIpA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gvzDU27gTLyvkcb7P9I+bhSOThtSUodlUfIN8LGroik=; b=O8tg9mWBWwM8RkZVwJtlMdyvy0n9pYbxRk5ObE9ka6WdwXDaBIsgkjwVOebmEIbjKH zqZfBHxX9kPXVt7s/SiSxzLwCkPT94Wml0PEr7zLnBLH3ACakjfL3Jea5C11v9lhqfCc vVlOrBgA6fIn7HkVxbQ3fdpv6jK4BS9a0FQn1lfRsEfX8VPlj5MgwG4Qr6LlJAMj87G5 G2iUKNOhyIbKsXrz7b5RV6+4zwNbw46dykcW2gcxxlOlOHiFJJ8Ojc9gKtW8zsvx0aCP IUmfIKqq76QjKmUWmfG48aAg1Zt+8TxlRzmsylSIpkcZxHWUSUHc99nqKKLY4uVgnecJ LPDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F+DlT4OP; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a17090a558a00b001fdad2cba40si4417861pji.80.2022.08.29.05.38.04; Mon, 29 Aug 2022 05:38:17 -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=@linuxfoundation.org header.s=korg header.b=F+DlT4OP; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231707AbiH2LX3 (ORCPT + 99 others); Mon, 29 Aug 2022 07:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231715AbiH2LWk (ORCPT ); Mon, 29 Aug 2022 07:22:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5257760F2; Mon, 29 Aug 2022 04:14:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D8561611DA; Mon, 29 Aug 2022 11:11:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7AD6C433D6; Mon, 29 Aug 2022 11:11:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771505; bh=4V9Ya8StPCisj3e5YG0S3LF8fSowUKxzSMCoiLeOgx0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F+DlT4OPbhOyzk/39W8dCz6ZpqUZixdRxo3mwzFImeRLg4gGDADGbad4hAmVfoWq4 1fw075kgXEmIEGqTOM4xWz1zCrUkmvW5cS4zEfZGgKa1gTPKyrGAYj8oaUeUBuoJ2Z msRhBt8yzFluo5adgxEbcQOHDEVvzSwT+coLZt4M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jeremy Linton , Jeremy Linton , Riwen Lu , "Rafael J. Wysocki" Subject: [PATCH 5.10 74/86] ACPI: processor: Remove freq Qos request for all CPUs Date: Mon, 29 Aug 2022 12:59:40 +0200 Message-Id: <20220829105759.544146749@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105756.500128871@linuxfoundation.org> References: <20220829105756.500128871@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Riwen Lu commit 36527b9d882362567ceb4eea8666813280f30e6f upstream. The freq Qos request would be removed repeatedly if the cpufreq policy relates to more than one CPU. Then, it would cause the "called for unknown object" warning. Remove the freq Qos request for each CPU relates to the cpufreq policy, instead of removing repeatedly for the last CPU of it. Fixes: a1bb46c36ce3 ("ACPI: processor: Add QoS requests for all CPUs") Reported-by: Jeremy Linton Tested-by: Jeremy Linton Signed-off-by: Riwen Lu Cc: 5.4+ # 5.4+ Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/processor_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/acpi/processor_thermal.c +++ b/drivers/acpi/processor_thermal.c @@ -148,7 +148,7 @@ void acpi_thermal_cpufreq_exit(struct cp unsigned int cpu; for_each_cpu(cpu, policy->related_cpus) { - struct acpi_processor *pr = per_cpu(processors, policy->cpu); + struct acpi_processor *pr = per_cpu(processors, cpu); if (pr) freq_qos_remove_request(&pr->thermal_req);