x86/xen/time: cleanup xen_tsc_safe_clocksource
authorKrister Johansen <kjlx@templeofstupid.com>
Wed, 22 Feb 2023 17:54:56 +0000 (09:54 -0800)
committerJuergen Gross <jgross@suse.com>
Thu, 23 Feb 2023 07:19:03 +0000 (08:19 +0100)
commit99a7bcafbd0d04555074554573019096a8c10450
treea0c9249b67d133a8386f0e8844014a168b17a95d
parent5f6e839ebc951c50f1ca06791d016c256f0285a9
x86/xen/time: cleanup xen_tsc_safe_clocksource

Modifies xen_tsc_safe_clocksource() to use newly defined constants from
arch/x86/include/asm/xen/cpuid.h.  This replaces a numeric value with
XEN_CPUID_TSC_MODE_NEVER_EMULATE, and deletes a comment that is now self
explanatory.

There should be no change in the function's behavior.

Signed-off-by: Krister Johansen <kjlx@templeofstupid.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/a69ca370fecf85d312d2db633d9438ace2af6e5b.1677038165.git.kjlx@templeofstupid.com
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/time.c