Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp292172imw; Fri, 15 Jul 2022 03:26:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vUc8tpuOCr7F12LYJCFmJzit7r+RuhC9LawUfhhWfyalzbYFLnIRSgGnxsuvC1gD878S3s X-Received: by 2002:a05:6a00:793:b0:52a:b261:f8e7 with SMTP id g19-20020a056a00079300b0052ab261f8e7mr13120998pfu.20.1657880774721; Fri, 15 Jul 2022 03:26:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657880774; cv=pass; d=google.com; s=arc-20160816; b=pApYVt8bgoz3murNlBknpuiUprTpgtGCflvq9NPd7ndzMIQCLa4tMjMWaAIEFnc93t sFEyzNJ8/mpkdSE1JgjWdJMFW+a1cjDd+KngkiboppLhAa47SGr8fJ1P4MAXWG5mSpgT IOjB3SxU6Cj6VfWEB8BO6lJMaW6/FwsTnXXt0TkvrS6xTq2vBxbKik836hO/y+UDD1K3 T4lqZ+t31wbWUmfAqhL4UkRFq5nUyKLr7iKgZcGBZA76yFyE/SomEnb11GKmmoOK2txm IsryLJocVjk65LaIPfOWtksnIPUn5dCesrK6Qiue5UuP22GrXDMx15PG9/OwIcfxmxdB CjMg== ARC-Message-Signature: i=2; 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 :dkim-signature; bh=lYjL+dKiCfASg/bPbZ75wr3KzbdhPszKwAUG3evHkg0=; b=Jz8A5ChsX6ewYyE9mgZnLNVZwlr3HZoPh5WI9vBjrCodDoBuyVfLtAuaW77uwdYIF4 PgkM7LbcsZsfdnNQ1UasfUaISMG0mRWXHMS1myFis8/g3zCGZgMdxu9lMKFplIsf5ThB i66mMIMvkwSAtFgzTZzq4UFxhUVgCTm9BaEn7Gs9N+CLuhZJ+u0q2eCsNOQ3UdZYCcC1 BppI8fFs8Auk5vfegFYz+eSEoAL/HJ2XLSWLxA14t8FIQ4SG2ewVc+Iy3Wg3gxpZjvNs yP+TEGiKpNaDzFZFvdMbEspD2x6HZFVV85IiHJcquTWROBI+FZtp87TchZY0hE9F/R01 +dWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=MlkCGiuV; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a623003000000b0052ad69b010asi4729121pfw.348.2022.07.15.03.25.58; Fri, 15 Jul 2022 03:26:14 -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=@amd.com header.s=selector1 header.b=MlkCGiuV; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231494AbiGOKGx (ORCPT + 99 others); Fri, 15 Jul 2022 06:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234283AbiGOKFh (ORCPT ); Fri, 15 Jul 2022 06:05:37 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2040.outbound.protection.outlook.com [40.107.100.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DE0284ED0; Fri, 15 Jul 2022 03:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bdoeqOtJIaTCp6oK7j3z0ICQbkv/H7t0uH4lOU+Cgq+In4SyP/yejq0RJCSzxfRcMjwSsDMkBnxZsVtBHhvRC7PcA/SQlv38aAISFwc2Oj+u/lLTurjT2RPwQ8ELMlexwENrheWhBuG3ECAnNJaWycyZQyolfZoWDTD9E154Zdm+KqWYk8hfW88Y7Nzvz8ViBKxHFwsptM+EYXClzJ7HfgtyNjVyA7AFUQCqGVUrb/kpzbEKbagq2++8/T+hfI7nB21oOHtHS5u44Ei3ytCTSzA3vnjQvcBjfPpMqJVFkOEVEftx18LyP2bO2jiPLJU3rmygX5FIFIWbEyaw7Q54ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lYjL+dKiCfASg/bPbZ75wr3KzbdhPszKwAUG3evHkg0=; b=bFYrIXs8AExrc2JstdFCwA2One9qAuihPRQ+C19ufuYjINnIAdln+F1Vu6EZfI7oO7QTHqyW+6SyouA+syOY4bPS1q7lMqPMjbfdwkEit6Cpe+Qq/bCbeh/L55/80wUeYwImsIEvu5rq/B5nk3I8FAcTiVBakaPII3se/9yAhspf8c3Rbvy18ozCCw7nFop9QaRTc9z/zyPksheDkph5HaeFQu3FnujIqJvjvHvkOFDp0TkMONnnAcyLQZrivLik0OVDo5o2756/fZdq1dXUSZ6Nl0k7QFsRCsr19FHhc7bSWhucPgqsWtxmTv9VTrXOFCGiEJcxxkFaWHZgwCeYKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lYjL+dKiCfASg/bPbZ75wr3KzbdhPszKwAUG3evHkg0=; b=MlkCGiuV+fgbPNvxuVthPxXWmNhmD3aj5uLmqwIca7EPLuboU9bafC9VuNWcl1LsHjPjNx5OwRtl+xLJX1hVXHmZYCsGNR3tdT4tzQba6qzpDtAuHPImabWILa3UesKlTiIzMZ+pMJpcRv4N71pyVZ2+M7ZY/J2ALFQW8M11/ho= Received: from BN9PR03CA0409.namprd03.prod.outlook.com (2603:10b6:408:111::24) by CY4PR12MB1799.namprd12.prod.outlook.com (2603:10b6:903:11c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.21; Fri, 15 Jul 2022 10:05:32 +0000 Received: from BN8NAM11FT041.eop-nam11.prod.protection.outlook.com (2603:10b6:408:111:cafe::91) by BN9PR03CA0409.outlook.office365.com (2603:10b6:408:111::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.19 via Frontend Transport; Fri, 15 Jul 2022 10:05:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT041.mail.protection.outlook.com (10.13.177.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5438.12 via Frontend Transport; Fri, 15 Jul 2022 10:05:31 +0000 Received: from AerithDEV2.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 15 Jul 2022 05:05:27 -0500 From: Perry Yuan To: , , CC: , , , , , , , , , , Perry Yuan , Sudeep Holla Subject: [PATCH v4 12/13] arch_topology: remove the acpi_disabled check Date: Fri, 15 Jul 2022 06:04:31 -0400 Message-ID: <84ed5051c2494f7ec25317b6857f27b8c6f1b6b4.1657876961.git.Perry.Yuan@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f3054ca7-a417-4a0c-2402-08da66498d48 X-MS-TrafficTypeDiagnostic: CY4PR12MB1799:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mYVcgp3I2F3Senjo6HbrPa9Lhc2OVLSmzzv2Euf4uZJZwx9I4m98FGV7oIdnnbhB8tkSPStMXtJGumnohWxangu3QrMKPucxMYhFYoRntInsuZu4+yZQIfu2mAUYFmPT2nfZsG0UzZ5zic/NMjldDI3Xb6nzCR+UoToBiMe36T3cSIOdHoz8H1duASHB4fgdKir0uw7zRDOd2nyRlYvCCuBHN863PSqFgh0upt+d5bvwHDpqA7EZCO0MJboyitcGyfC7BZJ34tHwvi+OidQswFhKQEE8oog3RYiVLkb5CjbtTiZ9zkQKIOmsAwnswaezyE9o/30qJzVBjQr6djyhqdegP+SXV+29tmGujA01IgAbG2z6nDfsxCw5Q6fGfewP43sZc48b5s/4NB3Vxzn6DQpsVBDur/SGXVKm4V8XBbWfxYhj1JvojIOrTG8Ko2jVpsv//cLi15Enkn70exQamzqCgwl7DgrNyciUI4WdhK6RbIvXAen12j2i/+fcM8lK+U7R/mCvwxNEkRwcq3LSdWn5ENjTOZ1YD+7CCWIyjlTZb/2+y+Dc4tN4SJnJAE7BKTdLwjN5OY5sfQUbFrPETs5q3i+F45P/Wk1E+zLl/y7XNnKslXwfF+M8hYewZ0XiEgLmDT2N4KIJzafdGnWsNgd/jLfvR1uVSVQNlncJMcFsMd4niMQDX1UF02+qCBd9f6wXyFCQvUXkT+Rom+CfaarDtkq3z7IrByx6B0ONgUTF68F2pvfrvfXB+cGVpEII4TDgLiDyJf6r9MwipUCAGX0OpMdRu+dtDdqlq3gN4taxLoIGnL3JpVuZ0Jv8WR/7wXEGljtsk28cfBfNh0JnG1kDG0a75t78PqcmPkobo5w= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(346002)(396003)(376002)(39860400002)(136003)(40470700004)(46966006)(36840700001)(478600001)(356005)(316002)(36756003)(6636002)(110136005)(86362001)(2906002)(54906003)(40480700001)(336012)(47076005)(81166007)(82740400003)(40460700003)(70586007)(426003)(41300700001)(70206006)(6666004)(16526019)(5660300002)(83380400001)(8936002)(7696005)(2616005)(186003)(82310400005)(36860700001)(26005)(4744005)(8676002)(4326008)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2022 10:05:31.4682 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f3054ca7-a417-4a0c-2402-08da66498d48 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT041.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1799 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 "acpi_cpc_valid" function already includes the acpi_disabled check and we can remove the duplicated check here Acked-by: Viresh Kumar Acked-by: Sudeep Holla Signed-off-by: Perry Yuan --- drivers/base/arch_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 579c851a2bd7..73a8cb31529d 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -352,7 +352,7 @@ void topology_init_cpu_capacity_cppc(void) struct cppc_perf_caps perf_caps; int cpu; - if (likely(acpi_disabled || !acpi_cpc_valid())) + if (likely(!acpi_cpc_valid())) return; raw_capacity = kcalloc(num_possible_cpus(), sizeof(*raw_capacity), -- 2.32.0