diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-03-13 10:09:25 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-03-13 10:09:25 +0000 |
commit | 550686e4fdd5234b21def5fcbd474e97f3bb4409 (patch) | |
tree | 5f798791b77246d1d713864b057eb4b8200d3b50 /xen/common/sysctl.c | |
parent | 8eaca58a104bf6a79202373d07d835a40268181e (diff) | |
download | xen-550686e4fdd5234b21def5fcbd474e97f3bb4409.tar.gz xen-550686e4fdd5234b21def5fcbd474e97f3bb4409.tar.bz2 xen-550686e4fdd5234b21def5fcbd474e97f3bb4409.zip |
xenpm: Add CPU topology info (thread/core/socket)
CPU topology info is necessary for power management analysis. For
example, to analysis the effect of Px state coordination, Cx
package/core coordination, the thread/core/socket topology
information is needed.
This patch add new command "get-cpu-topology" in xenpm to print the
CPU topology info:
Signed-off-by: Yu Ke <ke.yu@intel.com>
Diffstat (limited to 'xen/common/sysctl.c')
-rw-r--r-- | xen/common/sysctl.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xen/common/sysctl.c b/xen/common/sysctl.c index 0a4726e8ef..69604cebce 100644 --- a/xen/common/sysctl.c +++ b/xen/common/sysctl.c @@ -224,12 +224,11 @@ long do_sysctl(XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl) if ( ret && (ret != -EAGAIN) ) break; - if ( op->u.pm_op.cmd == GET_CPUFREQ_PARA ) - if ( copy_to_guest(u_sysctl, op, 1) ) - { - ret = -EFAULT; - break; - } + if ( copy_to_guest(u_sysctl, op, 1) ) + { + ret = -EFAULT; + break; + } } break; |