Re: [PATCH] x86/tsc: Read AMD CPU frequency from Core::X86::Msr::PStateDef

From: Stephen Horvath
Date: Thu Aug 14 2025 - 03:42:57 EST


On 14/8/25 16:36, kernel test robot wrote:
> Hi Stephen,
>
> kernel test robot noticed the following build errors:
>
> All errors (new ones prefixed by >>):
>
> ld: arch/x86/kernel/tsc_msr.o: in function `cpu_khz_from_msr_amd':
>>> arch/x86/kernel/tsc_msr.c:307: undefined reference to `__udivdi3'
>
> > 307 p0_freq = (unsigned long)(p0_freq * 1125ull / 1000);

Thanks! I can replace this with `mul_u64_u32_div(p0_freq, 1125, 1000)`
in the next revision.

Thanks,
Steve