[PATCH v2 0/2] Introduce x86_get_cpufreq_khz()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux