From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A82A3DE447 for ; Wed, 1 Jul 2026 19:32:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782934354; cv=none; b=uFPlR3ygyMKalS4Ss0BxmN+VeDjj6RgRexqqIBa+vf4zs64IFTTSwfTY1OAa6C7btaVQBSptzpk7I5VFItc1JnFwzOygpeMVum/4ah9MBMNIgyzrthI81muLNPs/RyOvQS/D98Cf0JXhfkdd3BD2V0cCbkXcTnx0Iog+NjHKJqA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782934354; c=relaxed/simple; bh=m7RzfJ+dglccDpbLj8Vzsd5+h0OdO8Af8uWyaDtsUyA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=UpyBqNBH3neFWv3A5I29njqj1WqPRfRNDNc5yXF6vPbMI2JL589gAOWynddHhhiz1T6rwo6H2Zdi865VrzL/nHRCsgK/G6oAzVOjwr77/nushp20KyroPBo5YnCaIWPnTojbqQiVibkyTqtMM2PgY+nPfMAvLdvgopA5M7jpb50= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=QVR4RimH; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="QVR4RimH" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-8478e603285so1932636b3a.0 for ; Wed, 01 Jul 2026 12:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1782934352; x=1783539152; darn=lists.linux.dev; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=s/QSbcUaf8Mr1OX5FYkbnza8ilhhfuHPZoXwnM4X05U=; b=QVR4RimH47KCDN/lYBasBdG4XpusXLwFpje4ELDAsJOvf1+SoED5igHah7VnWMDr0G qikokoMFUeB1Ll3SadTPquK+D2013tQDKzeAgy2m5OiuryCPjmedCsroUTImucgoW5hm kPr4zq7a/zVb5C6i4yw2D7BV6nPLUt1+YIzLINpb1q7Ov/V3mPh0FEVgZpUCPcLyO8VD spPUPQQmY1afM5PeRMHTz7YG8s+E8aslo2rirTy3Ff5I/pAiyTmuWjc9O+ybPNknmgFS vAxD5aRUZ5HPXuhEqB/P7YvgC+PLs+SyyY8E1lZXp4pSKyynKGaIIzjleCQZIQ22xcwZ +Uhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782934352; x=1783539152; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=s/QSbcUaf8Mr1OX5FYkbnza8ilhhfuHPZoXwnM4X05U=; b=lW8vSTEbu4Qxr+/YQoZWpLViw1danv0uzRRr0HoTFy0duRQ0TbQxv5U7YPC+w0QUvC tohcjpjyIv7CvwHrbPWfVt0n96DBIByIF43/F+rrb2i4N9icH22OE+E2T3dldnbhh8p4 2K91kMvo7Cy4d7Q5gKbt09TAxFekVU/OSkOANJ0LDRmDlSEhNz/gAmp49qjQYTYgtP0x Aqd4m9TLP4+7J+GxzQbB/aBTzU2SiIT7cS3AcDLjMwRmFB7v6PrDIvOWmXMx3vBaf3Xy r8HRtQEMccpJ1BFhAKtnzpMn8o+p/WNbFPDvuZh78ChHrRXV8YMwxNwD7/3i8/VNjUaI ynWg== X-Forwarded-Encrypted: i=1; AHgh+RoJVyWHDW1Ysq41qXImclJx9wO7sNsDeqkrJNRA2nLmBsBBwb94OJ3c9UI0LrMxGVgYaEQjTbiMZ6qx@lists.linux.dev X-Gm-Message-State: AOJu0YxXGjAYMxX349tjemo+ofV/gNC3RgA+YwR2TMcun44QTC9iNE24 gxP/xh1Vh6LBlzKp4sgLohXqCkydQ/eZKBe/TeCbQVV2jKzCR7buNFalaB6+1oahv5IE2lYxVQF zLfwGOg== X-Received: from pfbhc3.prod.google.com ([2002:a05:6a00:6503:b0:846:aff8:5614]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:3e10:b0:842:499d:450e with SMTP id d2e1a72fcca58-847a82d978dmr5886277b3a.20.1782934351240; Wed, 01 Jul 2026 12:32:31 -0700 (PDT) Reply-To: Sean Christopherson Date: Wed, 1 Jul 2026 12:31:25 -0700 In-Reply-To: <20260701193212.749551-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260701193212.749551-1-seanjc@google.com> X-Mailer: git-send-email 2.55.0.rc0.799.gd6f94ed593-goog Message-ID: <20260701193212.749551-5-seanjc@google.com> Subject: [PATCH v5 04/51] x86/tsc: Restrict recalibrate_cpu_khz() export to p4-clockmod and powernow-k7 From: Sean Christopherson To: Jonathan Corbet , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Kiryl Shutsemau , Rick Edgecombe , Sean Christopherson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Ajay Kaher , Alexey Makhalov , Jan Kiszka , Andy Lutomirski , Peter Zijlstra , Juergen Gross , Daniel Lezcano , John Stultz Cc: Shuah Khan , "H. Peter Anvin" , Vitaly Kuznetsov , Broadcom internal kernel review list , Boris Ostrovsky , Stephen Boyd , linux-doc@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-coco@lists.linux.dev, linux-hyperv@vger.kernel.org, virtualization@lists.linux.dev, xen-devel@lists.xenproject.org, Tom Lendacky , Nikunj A Dadhania , David Woodhouse , David Woodhouse , Michael Kelley , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Export recalibrate_cpu_khz() only for its two users, p4-clockmod.ko and powernow-k7.ko, to help document that recalibration is relevant only to ancient CPUs. For all intents and purposes, no functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kernel/tsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 4393902c0ddd..482cc3a8999a 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -943,7 +943,7 @@ void recalibrate_cpu_khz(void) cpu_khz_old, cpu_khz); #endif } -EXPORT_SYMBOL_GPL(recalibrate_cpu_khz); +EXPORT_SYMBOL_FOR_MODULES(recalibrate_cpu_khz, "p4-clockmod,powernow-k7"); static unsigned long long cyc2ns_suspend; -- 2.55.0.rc0.799.gd6f94ed593-goog