Received: by 2002:ab2:7853:0:b0:1fa:5c73:8e2d with SMTP id m19csp39458lqp; Thu, 30 May 2024 11:16:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWTMPCjsZypT6ctqstE0woY3TaYHczbsJmIk7gYHQCpCtpedHSYz/Bs4rnY/t+LIkxadMcK+OTatlRE9I1x7WMspvPGEbXUPEoCNpWGsw== X-Google-Smtp-Source: AGHT+IF3CL6yY0KnpEo+ZsmOM4uVZ3VcnQvnrya80rGQDNMfchCYlZ8OXj/hShCIjxhXtT+ajXKT X-Received: by 2002:a05:6358:9781:b0:186:2990:adb6 with SMTP id e5c5f4694b2df-199b937eb4bmr310056555d.2.1717092960698; Thu, 30 May 2024 11:16:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717092960; cv=pass; d=google.com; s=arc-20160816; b=wI0X+y0z7HyaGC/FRbq4YQ30d/RY73sGfA8K5upK9DLEGj0mcy/7U99WV7ILMyn0I6 HRvNsjeXlXS203C7GDW49loln5RpKuartaf/iwVCOFHAqY2kpLz3dW/TlpMuciBvjvSk VP+8gyzTJNNtmrl0Lao/WTvN5ksG8CGdtx2Dv46R/DuiG1PBLqzLfBTRkJ4My/f+X3am 7gNaKxJfjYN1gU21Ap9R6g7lltUa3SF3CCNyKyywBF+VUygIKQTskFiixpXc6vzO2d3c k9ZLptJMO6mo3BQyYURXqdqK+NSDUB2/qNzVx16j+a8jpi2aPpYaMxjeYZofiHUbB0VV /oeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=kln2C1eGajhL471DTyFoWZmkDHGttOID0nRSwMzuGL4=; fh=jBstiVgXQy1UEpr3rA1WxPVQPuoD5Ve1g596XjC2R9c=; b=pm9SyQxxrvERGS1p2KEMeoZFi4/ooeIUFAomMC6hFkfKvhADqc/udFr3ZZ3QbWB8xn m5GtEVJmJeIYGnsVO+AUDesk66z+TVZllptMoJl0rr7KsXXvsP48r6cQR5k3XWXN+Rg8 sRPFUXtvFtmDUycSVeDx/ykdzL47I+UHphjjJLPQYBR6zxjCRlGchn10waJvDQ0+9hqV OAZXTY270mgmjvMMi7ReVpVvnNRer1tWILeLgm7ziqLPaDk4kV1fVfsQoLUZa8rZ0PUE ZmA2Ra3vafiacg8qCkMGuP748svfSxZf7W4jGhW15PpbO+U6VUI2ImD8NATC9GXo1WUf kYZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="PuVH/o/m"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-195770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f3064e19si11039285a.238.2024.05.30.11.16.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 11:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="PuVH/o/m"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-195770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4F64B1C22BAC for ; Thu, 30 May 2024 18:16:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D4E64CE04; Thu, 30 May 2024 18:15:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="PuVH/o/m" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE96D21A04 for ; Thu, 30 May 2024 18:15:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717092954; cv=none; b=AeRenPYO61znbzmoAKcLm6ujWb+PfkeX1gfjY0hx80gY11a+mUxLMOuZ+zF4XAC7qrQBtaOMuTyk7EVrcM6+k1wl4iAP2aoDyWfjW2sR3GJRFx6G9IJofnaRErIIOBSJjQHWgzjKezm39B2B5f7BqbFQ9GrCcrL0r226b/YFZsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717092954; c=relaxed/simple; bh=LC2LFASKLycCWwgWib7+As2B9QvQG4dAU80ivl+WCiM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-type; b=qL0ACclzf1Qf7s2QqPRrxTg18gk3+BTk62Bx+Xt1fTpkA8CZRY0ly5/TTYpA6DFVFK01ELeONfN9ILr77k59uY0FjoQbuaIeHA2nDBGTyfkcnNHbU1WA5InxKNbq0vBZnDaFcp929KshvG0ysqxZeh5kTxtKV+fcZGGj9F00maI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=PuVH/o/m; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717092951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kln2C1eGajhL471DTyFoWZmkDHGttOID0nRSwMzuGL4=; b=PuVH/o/mO/y4L9EGB+kYICPhZly6zfECeEGHsyQrkoA2e2lh10ajfUaE+9AQ13mqY5/pEF xFlZGvSttkag7/CBUequwUNLM2VuuLjK5e4ER/wgx5uORTl/th9/Mm/V4+1aoombBHJbje Kxtcgme1hykum2jsXXxM9gJejNcaKkw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-275-Z3vdj78hOWuoOR0G95K5VQ-1; Thu, 30 May 2024 14:15:50 -0400 X-MC-Unique: Z3vdj78hOWuoOR0G95K5VQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A8E00185A780; Thu, 30 May 2024 18:15:49 +0000 (UTC) Received: from pauld.com (dhcp-17-223.bos.redhat.com [10.18.17.223]) by smtp.corp.redhat.com (Postfix) with ESMTP id D1A641C0D100; Thu, 30 May 2024 18:15:48 +0000 (UTC) From: Phil Auld To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Tony Luck , Qais Yousef Subject: [PATCH] sched,x86: export percpu arch_freq_scale Date: Thu, 30 May 2024 14:15:48 -0400 Message-ID: <20240530181548.2039216-1-pauld@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 Commit 7bc263840bc3 ("sched/topology: Consolidate and clean up access to a CPU's max compute capacity") removed rq->cpu_capacity_orig in favor of using arch_scale_freq_capacity() calls. Export the underlying percpu symbol on x86 so that external trace point helper modules can be made to work again. Signed-off-by: Phil Auld Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: Tony Luck Cc: Qais Yousef --- arch/x86/kernel/cpu/aperfmperf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/aperfmperf.c b/arch/x86/kernel/cpu/aperfmperf.c index f9a8c7b7943f..b3fa61d45352 100644 --- a/arch/x86/kernel/cpu/aperfmperf.c +++ b/arch/x86/kernel/cpu/aperfmperf.c @@ -345,6 +345,7 @@ static DECLARE_WORK(disable_freq_invariance_work, disable_freq_invariance_workfn); DEFINE_PER_CPU(unsigned long, arch_freq_scale) = SCHED_CAPACITY_SCALE; +EXPORT_PER_CPU_SYMBOL_GPL(arch_freq_scale); static void scale_freq_tick(u64 acnt, u64 mcnt) { -- 2.43.0