Re: [PATCH 08/11] x86/tsc: Remove CPUID "frequency" leaf magic numbers.

Zhao Liu
2024-11-26T04:19:36Z

On Wed, Nov 20, 2024 at 11:53:38AM -0800, Dave Hansen wrote:
> Date: Wed, 20 Nov 2024 11:53:38 -0800
> From: Dave Hansen <dave.hansen@linux.intel.com>
> Subject: [PATCH 08/11] x86/tsc: Remove CPUID "frequency" leaf magic numbers.
>
>
> From: Dave Hansen <dave.hansen@linux.intel.com>
>
> All the code that reads the CPUID frequency information leaf hard-codes
> a magic number. Give it a symbolic name and use it.
>
> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
> ---
>
> b/arch/x86/include/asm/cpuid.h | 1 +
> b/arch/x86/kernel/tsc.c | 12 ++++++------
> 2 files changed, 7 insertions(+), 6 deletions(-)

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>