Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp443385lqh; Fri, 31 May 2024 06:20:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwGhMe3OtJpahoTfyWw6qktWo0Ya97xeKoPOZ6+ASwsXLF4Of8/0jZAhI1kuAYYAHfcnwxL1W7MpR+z4NVbAGrgZ9DaH2k0BArmngzng== X-Google-Smtp-Source: AGHT+IGSNpGcAJLX6+uIxKJKEEiV8Oqqz5Ny1NImDmin8d2LHuN4VTD+Z/8fGNe3Wgt+iP6fBiUr X-Received: by 2002:a17:906:1b0d:b0:a62:404a:d0d0 with SMTP id a640c23a62f3a-a6820be9397mr133816766b.42.1717161614807; Fri, 31 May 2024 06:20:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717161614; cv=pass; d=google.com; s=arc-20160816; b=VQCTqoDWkL8Y9t4YfU3bTL6MvK+toD1OMqiTLSTjl53tHvoCoiYcfCVF3x8osBKLzg ftxHMBmbwYU3rTMW73ywXeDyAOqFAl/5i77FwEI4NRHIYnGntLuplxTfWoFpazq0RgG4 yy7lxDZH3yNIv6n1u6D+MXAvkHPz3vQdBr8mpKP/hPzHP2BWU0FACtA77Yrnx0J+EsDu 1obkANvSIeh84RlDOmk9Zmj+8uFkNC3rvQLVNw2rlQsJ+mGgxGjoeqntlP6od9q9XOMD lvIadHCIBTjcoxPAWl3DOL3e4hbu/XIMQ8qZGLIaYy2e7WtNEG4/Lt0MOOgVEHMKvGKJ o3IA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7RX9XyCRxKIq+uDAOrGUVB9R2UXmSBAHa6vW/8VLOGg=; fh=1R420mdP4N/lyh4a/LE32h9rX9o9p1bvMbo3Zn0kANY=; b=eouvMrI2yAiUo4fgpVzGrFyFUatUHBNT3P9+si788OflvNp4rAbe/JLVM73pCS7zIf QXx7iRUtmEwzKkb9ukswpo8rC57q67XQ6/u3KG0BtmpIf76AEEhXU5dHqRaiwR9qDj/S x8xel8ynrQdB/KhezY4l7js2nanv7fzstm3pMFGhg4WEgLfZrxL6kdRUjRiXB599JA2p uTgh2JzkaivfJLkCNuXtPiHv3oW0pu15v8bFV7dFThRk+WmfNu3Vd1XYXzeGWHU8dPg0 iejJAtsKWFpAZDeTFObRD9dC4G5k2FGgXg1wzrUEciaW7plNAlipQYt+uJQfVZYxJReA qKqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RGhzR6hT; 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-196872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a67ea990e8esi92566866b.587.2024.05.31.06.20.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 06:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RGhzR6hT; 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-196872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196872-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 817BA1F219D6 for ; Fri, 31 May 2024 13:20:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 828AC158A1A; Fri, 31 May 2024 13:20:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="RGhzR6hT" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 4A7F7D51E for ; Fri, 31 May 2024 13:20:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717161607; cv=none; b=qjr//cpC4rJYJuA3ij0jR0aP+ol/RzqFk7PsGoeFbfvFLOddNtyw3Q/1WrxsX95FyvW+W3MxeaTxj55c55Geb6Gdfab3y1gRfL7qN5SbfhRBZHae1hnxl+BFmpOX/Ya6mAT8sxX6ttNwQoUjBw6zNlV320aT4lC6uoFXrXd8GLE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717161607; c=relaxed/simple; bh=VVq8ctt2mTLS4WDTn8eonpp/27+kdpc3GP5Ow4nWyu0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jO1aVXAHtA8/1NkKjSR3PJrNBM93FTzsc81ifylz/WffOZblH0/76xFyAU+hRINzGuZo5W0igYB/kcRNEgXVQTVRLE+OaQ4KsI70tM7aimVE4TohPjNZG1Ogv53qdjM/7xPnf974zLSh2e6KohYQ/7iwWXGlmeWE4+JtdVRYxvI= 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=RGhzR6hT; arc=none smtp.client-ip=170.10.133.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=1717161605; 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: in-reply-to:in-reply-to:references:references; bh=7RX9XyCRxKIq+uDAOrGUVB9R2UXmSBAHa6vW/8VLOGg=; b=RGhzR6hTuTz0AslnpJa+9rDakoNK8KexzR2nJTffcAehxbagqVboAEnID+Bp+s1TczsP05 E28MLglA2BainoHT3OV1r5fmqLvGzRjOV0T/gf2sqZQFnWW2NQa8oeJN/rf/mvq9ekVKnE AEC00yjXK5oskqbeOhebFJa2DOxKiY0= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-402-__lX6inrMQ26Lb-kRwIydA-1; Fri, 31 May 2024 09:20:02 -0400 X-MC-Unique: __lX6inrMQ26Lb-kRwIydA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 ABB8D1C0512B; Fri, 31 May 2024 13:20:01 +0000 (UTC) Received: from lorien.usersys.redhat.com (unknown [10.22.33.86]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 539A27412; Fri, 31 May 2024 13:20:01 +0000 (UTC) Date: Fri, 31 May 2024 09:19:59 -0400 From: Phil Auld To: Ingo Molnar Cc: Peter Zijlstra , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [tip: sched/urgent] sched/x86: Export 'percpu arch_freq_scale' Message-ID: <20240531131959.GC54413@lorien.usersys.redhat.com> References: <20240530181548.2039216-1-pauld@redhat.com> <171714958509.10875.11912816904466913393.tip-bot2@tip-bot2> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <171714958509.10875.11912816904466913393.tip-bot2@tip-bot2> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 On Fri, May 31, 2024 at 09:59:45AM -0000 tip-bot2 for Phil Auld wrote: > The following commit has been merged into the sched/urgent branch of tip: > > Commit-ID: d40605a6823577a6c40fad6fb1f10a40ea0389d7 > Gitweb: https://git.kernel.org/tip/d40605a6823577a6c40fad6fb1f10a40ea0389d7 > Author: Phil Auld > AuthorDate: Thu, 30 May 2024 14:15:48 -04:00 > Committer: Ingo Molnar > CommitterDate: Fri, 31 May 2024 11:48:42 +02:00 > > sched/x86: Export 'percpu arch_freq_scale' > Thanks Ingo! > 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 > Signed-off-by: Ingo Molnar > Cc: Peter Zijlstra > Link: https://lore.kernel.org/r/20240530181548.2039216-1-pauld@redhat.com > --- > 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 f9a8c7b..b3fa61d 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) > { > --