search for: xenpf_get_cpu_freq

Displaying 1 result from an estimated 1 matches for "xenpf_get_cpu_freq".

2008 Sep 19
8
[PATCH] x86: add hypercall to query current underlying pCPU''s frequency
...uint64_t idletime, now = NOW(); - struct vcpu *v; struct xenctl_cpumap ctlmap; cpumask_t cpumap; XEN_GUEST_HANDLE(uint8) cpumap_bitmap; @@ -482,6 +482,20 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xe break; } break; + + case XENPF_get_cpu_freq: + if ( op->u.get_cpu_freq.vcpu >= MAX_VIRT_CPUS || + !(v = current->domain->vcpu[op->u.get_cpu_freq.vcpu]) ) + { + ret = -EINVAL; + break; + } + + op->u.get_cpu_freq.freq = cpufreq_cpu_policy[v->processor] ? +...