mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 08:15:07 -04:00
x86/hygon: Stop using 32-bit MSR interfaces
The 32-bit MSR interface rdmsr_safe()is planned to be removed. Use the related 64-bit variant instead. Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Pu Wen <puwen@hygon.cn> Link: https://patch.msgid.link/20260629060526.3638272-11-jgross@suse.com
This commit is contained in:
committed by
Ingo Molnar
parent
cff219368b
commit
c36c3d7e5d
@@ -125,11 +125,12 @@ static void bsp_init_hygon(struct cpuinfo_x86 *c)
|
||||
|
||||
static void early_init_hygon(struct cpuinfo_x86 *c)
|
||||
{
|
||||
u32 dummy;
|
||||
u64 val;
|
||||
|
||||
set_cpu_cap(c, X86_FEATURE_K8);
|
||||
|
||||
rdmsr_safe(MSR_AMD64_PATCH_LEVEL, &c->microcode, &dummy);
|
||||
rdmsrq_safe(MSR_AMD64_PATCH_LEVEL, &val);
|
||||
c->microcode = (u32)val;
|
||||
|
||||
/*
|
||||
* c->x86_power is 8000_0007 edx. Bit 8 is TSC runs at constant rate
|
||||
|
||||
Reference in New Issue
Block a user