[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211201024650.88254-1-pizhenwei@bytedance.com>
Date: Wed, 1 Dec 2021 10:46:48 +0800
From: zhenwei pi <pizhenwei@...edance.com>
To: tglx@...utronix.de, pbonzini@...hat.com
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org, x86@...nel.org,
zhenwei pi <pizhenwei@...edance.com>
Subject: [PATCH v2 0/2] Introduce x86_get_cpufreq_khz()
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
Powered by blists - more mailing lists