Messages in this thread | | | From | zhenwei pi <> | Subject | [PATCH v2 0/2] Introduce x86_get_cpufreq_khz() | Date | Wed, 1 Dec 2021 10:46:48 +0800 |
| |
v2: - Rename x86_get_freq() to x86_get_cpufreq_khz() to make function specific. (Suggested by Thomas Gleixner) - Use cpu_feature_enabled(X86_FEATURE_TSC) instead of cpu_has(&cpu_data(cpu), X86_FEATURE_TSC) to test feature. (Suggested by Thomas Gleixner) - Spell fixes. (Suggested by Thomas Gleixner)
v1: - Introduce x86_get_freq(), hide detailed implemention from proc routine. - KVM uses x86_get_freq() to get CPU frequecy.
zhenwei pi (2): x86/cpu: Introduce x86_get_cpufreq_khz() KVM: x86: use x86_get_freq to get freq for kvmclock
arch/x86/include/asm/processor.h | 2 ++ arch/x86/kernel/cpu/common.c | 19 +++++++++++++++++++ arch/x86/kernel/cpu/proc.c | 13 +++---------- arch/x86/kvm/x86.c | 4 +--- 4 files changed, 25 insertions(+), 13 deletions(-)
-- 2.25.1
| |