Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4002808pxb; Mon, 4 Oct 2021 14:58:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrV90jvVwzFzM+GJG0+B+DhO3wft74aQSQxpXZZYEJmk4RJ32xDjtaH5lUBB8+9ACPxIEJ X-Received: by 2002:a50:ec08:: with SMTP id g8mr17795522edr.303.1633384721999; Mon, 04 Oct 2021 14:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633384721; cv=none; d=google.com; s=arc-20160816; b=iNexdhgoA6wMibln7gsKpsvzGV4ZL6m0QvcV99FknmYcin5xJXnciyVWueuQ4/SunQ kzuCHNzNeY1ug2yqjPhIa2nv4KN0l98Q2YcJIW+xNPGdgrtPhZvvAr0wegY3Q++ucu8A qc+NWVI6qW2b2jehesNbA53KA8F4qkxM0XPbWDzpli2teS8lpbMxupKWD3bECQnX75nC nkzEjRDFeEqQ/5dG3Y6z9Qnp4ymiKwYJK9RxAnogyzeRXlw1Mw8UXS2awH2XDL2ZkKR6 K1cPVnWoyART8AURUZFJcTiKVQJd99cQRfe8TCTj1bOHHEg8CBuUGAIfDDCScJ2W9EnN N6tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=HVYkGmRHIh8mKFmrpH6bc+eqMMB8fcWWyRnAvAv3Hu8=; b=ZrxkJXKP0VfkA1j0fFclMbhTD9Lyehl1dQxK04Zo30ejUnNnig9+zSGmfisOWY5c2B fQVs1SRiBI5viBLJmFH2dmtuimb8yJufTN7ZCL+NS7jgFLdDM6KHR3TY9Y+UL5WH6cG4 ucwIYQvgFeqNJmRikJvD3DcW06F0goYZa2wpHfiIpfZI/SWe0d1kLFTSgOkI9J7NTxx0 /uQSJbAJUqdC4DH71SL2CwXPfFRvCVCk13lJ55brItTzT8z9T16ZXj/B2O+UrWRW3ZWK dXNXPH7vedI8H5NLr+I5N5REMp9pPhbwYLYb6s3YiTUmZV2OPflYmuPRxctxa0kRcMS4 Weiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e11si2603043edz.215.2021.10.04.14.58.18; Mon, 04 Oct 2021 14:58:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234816AbhJDOob (ORCPT + 99 others); Mon, 4 Oct 2021 10:44:31 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:57220 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234703AbhJDOo3 (ORCPT ); Mon, 4 Oct 2021 10:44:29 -0400 X-UUID: 0d4150efbb86459abbfb466af4ba53d7-20211004 X-UUID: 0d4150efbb86459abbfb466af4ba53d7-20211004 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1421367160; Mon, 04 Oct 2021 22:42:38 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Mon, 4 Oct 2021 22:42:37 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 4 Oct 2021 22:42:36 +0800 From: Hector Yuan To: , , , "Rafael J. Wysocki" , Viresh Kumar CC: , , Subject: [PATCH v1 1/1] cpufreq:Fix parameter in parse_perf_domain Date: Mon, 4 Oct 2021 22:42:33 +0800 Message-ID: <1633358553-2842-2-git-send-email-hector.yuan@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1633358553-2842-1-git-send-email-hector.yuan@mediatek.com> References: <1633358553-2842-1-git-send-email-hector.yuan@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Hector.Yuan" Should pass per-cpu id to map perf_domain for related_cpus rather than map policy_cpu several times. Signed-off-by: Hector.Yuan --- include/linux/cpufreq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index ff88bb3..66a1f49 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -1041,7 +1041,7 @@ static inline int of_perf_domain_get_sharing_cpumask(int pcpu, const char *list_ if (cpu == pcpu) continue; - ret = parse_perf_domain(pcpu, list_name, cell_name); + ret = parse_perf_domain(cpu, list_name, cell_name); if (ret < 0) continue; -- 1.7.9.5