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

[Xen-devel] [RFC PATCH] xen_cpufreq implementation in kernel

Hi to all.

Next series of patches implements xen-cpufreq driver in kernel.

Cpufreq core and registered cpufreq governors are located in xen. Dom0 has CPU
driver which can only change frequency of the physical CPUs. In addition this
driver can change CPUs regulator voltage. At start time xen-cpufreq driver
in kernel uploads to Xen information about physical cpus.
Xen notifies Dom0 kernel using VIRQ_CPUFREQ interrupt. Then xen-cpufreq driver
in kernel uses XEN_SYSCTL_cpufreq_op operation from HYPERVISOR_sysctl hypercall
to get some parameters from Xen (frequency, relation and cpu number).
Then xen-cpufreq changes frequency on physical cpu and uses the same
XEN_SYSCTL_cpufreq_op operation ti give the result to Xen.

Next configs should be enabled to use xen-cpufreq driver:

Oleksandr Dmytryshyn (7):
  PM / OPP: make cpufreq functions dependent on CONFIG_CPU_FREQ_TABLE
  xen/arm: implement HYPERVISOR_sysctl
  xen/arm: implement HYPERVISOR_dom0_op
  xen/arm: add XEN_SYSCTL_cpufreq_op definition
  cpufreq: cpufreq-cpu0: change cpus data path in devtree for Dom0
  cpufreq: make CPU Frequency scaling drivers visible for XEN_DOM0
  xen/arm: cpufreq: add cpufreq driver

 arch/arm/include/asm/xen/hypercall.h |   2 +
 arch/arm/include/asm/xen/interface.h |   2 +
 arch/arm/xen/enlighten.c             |   2 +
 arch/arm/xen/hypercall.S             |   2 +
 drivers/Makefile                     |   2 +
 drivers/base/power/opp.c             |   4 +-
 drivers/cpufreq/Kconfig              |  10 +-
 drivers/cpufreq/cpufreq-cpu0.c       |   4 +
 drivers/xen/Kconfig                  |  20 +
 drivers/xen/Makefile                 |   1 +
 drivers/xen/xen-cpufreq.c            | 882 +++++++++++++++++++++++++++++++++++
 include/linux/opp.h                  |   2 +-
 include/xen/interface/sysctl.h       | 664 ++++++++++++++++++++++++++
 include/xen/interface/xen.h          |   7 +
 14 files changed, 1600 insertions(+), 4 deletions(-)
 create mode 100644 drivers/xen/xen-cpufreq.c
 create mode 100644 include/xen/interface/sysctl.h


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.