Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp771331pxp; Fri, 11 Mar 2022 14:42:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQL66XC0PW5753fdqhsUHwawFzTgBB2dsC0YEkoXpjahGG1KATPzkWAIa7vRnzTWWMmGJW X-Received: by 2002:a17:90a:bd04:b0:1bf:951d:5bf2 with SMTP id y4-20020a17090abd0400b001bf951d5bf2mr20673890pjr.18.1647038535509; Fri, 11 Mar 2022 14:42:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647038535; cv=none; d=google.com; s=arc-20160816; b=0hCqLrn6Ku/VFv/+erOIrmxb8k2ZFsPoiOPM76aQCI0Wwv3DLxXDoagdDdgbTHH9KS 091D+ZdNZD/lwz/mwrpvyPW/vbiBoTX0i1sUleK6pkjWu9lw9GA6MqF1mMsFqHLvhjcn FIKptGYVhSalm8Njp1wVd4jR4gsHfNDgPKGuKMbWVafStF/6QwPrHV0d9EQza+PdRyBi ThKuRlXBanBZB6CcNbnEYPXvwvrht9dmBMfmvzjIS1OuQGh4jox3aAhVX3U6SaGRmYKb Pc4ztmgkPv0e2RZnwqXMBCzxAOsdMmkBODmtJ1dEx9H4b3CdzjrpDFaoOst1QwOSmo+1 wVMA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wntl8tYSxbNP14jc6XrIjqblW6NqE1LJMEUzzbxYcFU=; b=LaELFY/6o7Hj7hKHYkeTcJ91lJ/7DPycJblkbzjJVxMStvErEBmcbkcSQyJVUI5Z1X Kd32e+Qj/2fe/xBFTUeI2zRG00Nh8PN+KS+5DDgHtD5MFDFjahe9Idn6o4e0YsJB4IKf MBXT40luUTICRja9sxcHdCbezhAs25Rp/xQOaDSE3XQ2KfYiYoAxhsJHH/+wlqrY3JNa RIrL2VlLrlbjX4Nzeoj8T8ZpzOplVuc5BbaVdWbBlgo1zTSysV8X6XZeBJyMY35CR7uY lVQyoEbYmJEUqjfTpRonoZDegwXZUFyLW7eWFIFGPQBU3TgihzMAbutHkCk/zECXpclP aX1g== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n125-20020a634083000000b00378deae2d87si8626185pga.102.2022.03.11.14.42.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:42:15 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A296E443E4; Fri, 11 Mar 2022 13:49:48 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245478AbiCJPHE (ORCPT + 99 others); Thu, 10 Mar 2022 10:07:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343669AbiCJPGr (ORCPT ); Thu, 10 Mar 2022 10:06:47 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 518A219CCCF; Thu, 10 Mar 2022 06:56:13 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DCF9216F3; Thu, 10 Mar 2022 06:55:49 -0800 (PST) Received: from e108754-lin.cambridge.arm.com (unknown [10.1.195.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 030F93F7B4; Thu, 10 Mar 2022 06:55:47 -0800 (PST) From: Ionela Voinescu To: Sudeep Holla , "Rafael J . Wysocki" , Thomas Gleixner , Ingo Molnar , Giovanni Gherdovich , Catalin Marinas , Will Deacon , Valentin Schneider , Dietmar Eggemann , Sean Kelley Cc: Pierre Gondois , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Yicong Yang Subject: [PATCH v4 3/3] arm64, topology: enable use of init_cpu_capacity_cppc() Date: Thu, 10 Mar 2022 14:54:51 +0000 Message-Id: <20220310145451.15596-4-ionela.voinescu@arm.com> X-Mailer: git-send-email 2.29.2.dirty In-Reply-To: <20220310145451.15596-1-ionela.voinescu@arm.com> References: <20220310145451.15596-1-ionela.voinescu@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 Now that the arch topology driver provides a method of setting CPU capacity values based on information on highest performance from CPPC, use this functionality on arm64 platforms. Signed-off-by: Ionela Voinescu Acked-by: Catalin Marinas Tested-by: Valentin Schneider Tested-by: Yicong Yang Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/topology.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h index f386b90a79c8..9fab663dd2de 100644 --- a/arch/arm64/include/asm/topology.h +++ b/arch/arm64/include/asm/topology.h @@ -24,6 +24,10 @@ void update_freq_counters_refs(void); #define arch_scale_freq_capacity topology_get_freq_scale #define arch_scale_freq_invariant topology_scale_freq_invariant +#ifdef CONFIG_ACPI_CPPC_LIB +#define arch_init_invariance_cppc topology_init_cpu_capacity_cppc +#endif + /* Replace task scheduler's default cpu-invariant accounting */ #define arch_scale_cpu_capacity topology_get_cpu_scale -- 2.25.1