Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3685213rwa; Tue, 23 Aug 2022 08:29:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR4jX0nXKTSQ5wFKwAlBbGnhzJPFrKIP0laCdby1RJGyCQcCXwmp+EhbvLq3Z5O98Qxwnryr X-Received: by 2002:a05:6a00:301c:b0:52d:bff9:5004 with SMTP id ay28-20020a056a00301c00b0052dbff95004mr25773172pfb.84.1661268585462; Tue, 23 Aug 2022 08:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661268585; cv=none; d=google.com; s=arc-20160816; b=L8J58a8SaEz9s6BmFs0wl8DWdDRUHT48khcv4frNnApnTFY5At0VMXc+8L3FtsLB89 V4n+16b62EYtAg3muZ2MPVIVjlbtsTLom7mIPLci1DeiGsmQWb6fbbHYC0ArRnOTr9AQ JAQDRtQZ7hhEvTwdrFt6TZrBtJHUyT8pFXlpTWMiKSa7tiQF9A5sFxCW0wJDvITt5G1R 9wTd5LAaucThBgLqetcCpRK1RxXua0n2XFfDJpEjxGj6HJRZw+L+Zixxu8Q4mYs7X7Jb npa4nToIsVNUigbk/PcuX3k4VAaNeMmODv9DUK25HUB3PELTyGNw5o98V8Bp05yP2cG9 sP8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=tVM0oU+KcbkkR1L5Juny7z91kUbxlvKKQy9MlCqydrk=; b=WA1iZW/z6kx/cXmSeomGxScXndSIPxoaIXMQPAoZD1auL0HOhpELhbR+cxUlBNeIcn aIdLippnbuuDCPD7LP0eKfmbwYSrWIEblzfRgVGM9tZ4gnWV6kY+w5e9cw6eIs7SBsDq itZJ8dEx8EKyGshmiHdFJS5+81vll6+ZErhEz7HPYia1CJ5obIvqDd5VUCjReVgLgUA1 9KE6qSOpH8DuhF9J2rFt3R+PUJSgjCeGLqKTEd4hB+2caLMcu5c/QOUOlEwuv1xP62Ba /FS4fRba/j5gn/hJIkP/eOWYe/qxL0CHBuXcfMoxFtObzNjlZNhlygRAEfpYpB/fuUf5 YA8A== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o23-20020a63fb17000000b0042a866cca7dsi10396884pgh.16.2022.08.23.08.29.34; Tue, 23 Aug 2022 08:29:45 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236692AbiHWPDY (ORCPT + 99 others); Tue, 23 Aug 2022 11:03:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243169AbiHWPBu (ORCPT ); Tue, 23 Aug 2022 11:01:50 -0400 Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7C8B316D7E; Tue, 23 Aug 2022 05:27:11 -0700 (PDT) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-3378303138bso334304787b3.9; Tue, 23 Aug 2022 05:27:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=tVM0oU+KcbkkR1L5Juny7z91kUbxlvKKQy9MlCqydrk=; b=ta8Gc7uW8JjuvoueFcVes9t4Nh3UVPVyNxcOCv9F8wb9mZPu6hUhoRBGFhl+Y/ood9 GHfICMkHLUR6FXBYMNsHD2BNgNMFDNDhdTntt/HJwUfW2Q0kFWLV5aq97FBOtFile1Ef Ge/5T8iTiql1L2CsIQUpAEp/upW710+aMoqgSax/J0lcOeL0kxMcYnjnfOw4QW3G+TMm H9RK1lfCEiiVejZmyfBe4675ifGtbst/UgRxHYvW126CBpWXRSDtJQxHoQ9zr5/X2QEe 5WeBZWt6f1dzjZhPzjP1W4dmpZU3H6lUxJUqZCMaI6+AUU59llr++9kea4CAEOblpviL LsTQ== X-Gm-Message-State: ACgBeo0/XVE3pYkgD7ccCEPtAnNrbFCRzoD/l78ExDSCmp/V3XW5lsg9 9Pddt51D3JAVbqBg3hQVS74C2avaxgQmEu1mY1CR6FyOJe8= X-Received: by 2002:a25:b749:0:b0:68f:171f:96bd with SMTP id e9-20020a25b749000000b0068f171f96bdmr24451642ybm.137.1661257592999; Tue, 23 Aug 2022 05:26:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 23 Aug 2022 14:26:22 +0200 Message-ID: Subject: Re: [PATCH v1] ACPI: processor: Remove freq Qos request for all CPUs To: Riwen Lu Cc: "Rafael J. Wysocki" , "Zhang, Rui" , Len Brown , Jeremy Linton , ACPI Devel Maling List , Linux Kernel Mailing List , Riwen Lu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Aug 23, 2022 at 9:44 AM Riwen Lu wrote: > > From: Riwen Lu > > 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 > Signed-off-by: Riwen Lu > --- > drivers/acpi/processor_thermal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/acpi/processor_thermal.c b/drivers/acpi/processor_thermal.c > index db6ac540e924..e534fd49a67e 100644 > --- a/drivers/acpi/processor_thermal.c > +++ b/drivers/acpi/processor_thermal.c > @@ -151,7 +151,7 @@ void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy) > 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); > -- Thanks for fixing my mistake! I've applied this one instead of the revert of commit 7fdc74da940d, as 6.0-rc material.