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

[Xen-devel] [RFC PATCH 4/7] xen/arm: add XEN_SYSCTL_cpufreq_op definition



xen-cpufreq driver uses this op to get some
parameters to change CPUs frequency.

Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@xxxxxxxxxxxxxxx>
---
 include/xen/interface/sysctl.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/include/xen/interface/sysctl.h b/include/xen/interface/sysctl.h
index 1a8cf7a..456be87 100644
--- a/include/xen/interface/sysctl.h
+++ b/include/xen/interface/sysctl.h
@@ -597,6 +597,22 @@ struct xen_sysctl_coverage_op {
 };
 DEFINE_GUEST_HANDLE_STRUCT(xen_sysctl_coverage_op);
 
+#define XEN_SYSCTL_CPUFREQ_get_target      0
+#define XEN_SYSCTL_CPUFREQ_set_result      1
+
+struct xen_sysctl_cpufreq_op {
+       uint32_t cmd;
+       union {
+               struct {
+                       uint32_t cpu;
+                       uint32_t freq;
+                       uint32_t relation;
+               } target;
+               uint32_t result;
+       } u;
+};
+DEFINE_GUEST_HANDLE_STRUCT(xen_sysctl_cpufreq_op);
+
 
 struct xen_sysctl {
        uint32_t cmd;
@@ -618,6 +634,7 @@ struct xen_sysctl {
 #define XEN_SYSCTL_cpupool_op                    18
 #define XEN_SYSCTL_scheduler_op                  19
 #define XEN_SYSCTL_coverage_op                   20
+#define XEN_SYSCTL_cpufreq_op                    21
        uint32_t interface_version; /* XEN_SYSCTL_INTERFACE_VERSION */
        union {
                struct xen_sysctl_readconsole       readconsole;
@@ -638,6 +655,7 @@ struct xen_sysctl {
                struct xen_sysctl_cpupool_op        cpupool_op;
                struct xen_sysctl_scheduler_op      scheduler_op;
                struct xen_sysctl_coverage_op       coverage_op;
+               struct xen_sysctl_cpufreq_op        cpufreq_op;
                uint8_t                             pad[128];
        } u;
 };
-- 
1.9.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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