Displaying 8 results from an estimated 8 matches for "getidletim".
Did you mean:
getidletime
2007 Oct 23
6
[PATCH][cpufreq] Xen support for the ondemand governor [1/2] (hypervisor code)
...uint64_t totaltime;
struct vcpu *v;
XEN_GUEST_HANDLE(uint64_t) idletimes;
+ XEN_GUEST_HANDLE(uint64_t) totaltimes;
ret = -ENOSYS;
if ( cpufreq_controller != FREQCTL_dom0_kernel )
break;
guest_from_compat_handle(idletimes, op->u.getidletime.idletime);
+ guest_from_compat_handle(totaltimes, op->u.getidletime.totaltime);
nr_cpus = min_t(uint32_t, op->u.getidletime.max_cpus, NR_CPUS);
for ( i = 0; i < nr_cpus; i++ )
@@ -312,11 +315,16 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xe
break;...
2007 Oct 23
2
[PATCH][cpufreq] Xen support for the ondemand governor [2/2] (linux)
...de <xen/interface/platform.h>
+static int dbs_calc_load(struct cpu_dbs_info_s *this_dbs_info)
+{
+ int load = 0;
+ struct xen_platform_op op;
+ uint64_t idletime[NR_CPUS];
+ uint64_t totaltime[NR_CPUS];
+ struct cpufreq_policy *policy;
+ unsigned int j;
+
+ op.cmd = XENPF_getidletime;
+ op.u.getidletime.max_cpus = num_online_cpus();
+ set_xen_guest_handle(op.u.getidletime.idletime, idletime);
+ set_xen_guest_handle(op.u.getidletime.totaltime, totaltime);
+ HYPERVISOR_platform_op(&op);
+
+ policy = this_dbs_info->cur_policy;
+ for_each_cpu_mas...
2007 Oct 29
0
[PATCH][retry 2][cpufreq] Xen support for the ondemand governor in Linux dom0
...load;
+}
+#else
+
+#include <xen/interface/platform.h>
+static int dbs_calc_load(struct cpu_dbs_info_s *this_dbs_info)
+{
+ int load = 0;
+ struct xen_platform_op op;
+ uint64_t idletime[NR_CPUS];
+ struct cpufreq_policy *policy;
+ unsigned int j;
+ cpumask_t cpumap;
+
+ op.cmd = XENPF_getidletime;
+ set_xen_guest_handle(op.u.getidletime.cpumap_bitmap, (uint8_t *) cpus_addr(cpumap));
+ op.u.getidletime.cpumap_nr_cpus = NR_CPUS;// num_online_cpus();
+ set_xen_guest_handle(op.u.getidletime.idletime, idletime);
+ if (HYPERVISOR_platform_op(&op))
+ return 200;
+
+ poli...
2008 Sep 19
8
[PATCH] x86: add hypercall to query current underlying pCPU''s frequency
...xenpf_get_cpu_freq_t;
+DEFINE_XEN_GUEST_HANDLE(xenpf_get_cpu_freq_t);
+
struct xen_platform_op {
uint32_t cmd;
uint32_t interface_version; /* XENPF_INTERFACE_VERSION */
@@ -327,6 +337,7 @@ struct xen_platform_op {
struct xenpf_change_freq change_freq;
struct xenpf_getidletime getidletime;
struct xenpf_set_processor_pminfo set_pminfo;
+ struct xenpf_get_cpu_freq get_cpu_freq;
uint8_t pad[128];
} u;
};
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
h...
2011 Sep 14
1
[PATCH] xen/xsm: Compile error due to naming clash between XSM and EFI runtime
.../xsm.h Wed Sep 14 09:48:25 2011 -0400
@@ -132,7 +132,7 @@
int (*physinfo) (void);
int (*platform_quirk) (uint32_t);
int (*firmware_info) (void);
- int (*efi_runtime_call) (void);
+ int (*efi_call) (void);
int (*acpi_sleep) (void);
int (*change_freq) (void);
int (*getidletime) (void);
@@ -554,9 +554,9 @@
return xsm_call(firmware_info());
}
-static inline int xsm_efi_runtime_call (void)
+static inline int xsm_efi_call (void)
{
- return xsm_call(efi_runtime_call());
+ return xsm_call(efi_call());
}
static inline int xsm_acpi_sleep (void)
--
James Ca...
2012 Feb 23
7
[PATCH 2/2] RFC: Xen pad logic
...be idled */
+ uint32_t idle_nums;
+};
+DEFINE_GUEST_HANDLE_STRUCT(xenpf_core_parking);
+
struct xen_platform_op {
uint32_t cmd;
uint32_t interface_version; /* XENPF_INTERFACE_VERSION */
@@ -312,6 +325,7 @@ struct xen_platform_op {
struct xenpf_change_freq change_freq;
struct xenpf_getidletime getidletime;
struct xenpf_set_processor_pminfo set_pminfo;
+ struct xenpf_core_parking core_parking;
uint8_t pad[128];
} u;
};
--
1.7.1
2010 Nov 11
10
[PATCH 0/3] Xen Microcode update driver for 2.6.38
From: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Hi all,
This series adds a new microcode driver for Xen. The Xen hypervisor
can deal with all the low-level details of doing a microcode update
(Intel vs AMD, doing all the physical CPUs present on the system,
current and future, etc), so all the driver has to do is make a
hypercall to upload the microcode into Xen.
This only
2008 Nov 13
69
[PATCH 00 of 38] xen: add more Xen dom0 support
Hi Ingo,
Here''s the chunk of patches to add Xen Dom0 support (it''s probably
worth creating a new xen/dom0 topic branch for it).
A dom0 Xen domain is basically the same as a normal domU domain, but
it has extra privileges to directly access hardware. There are two
issues to deal with:
- translating to and from the domain''s pseudo-physical addresses and
real machine