]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Document that virNodeGetInfo can return mhz == 0.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 11 May 2015 20:24:36 +0000 (21:24 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 12 May 2015 09:08:43 +0000 (10:08 +0100)
commited8155eafbff5c5ca0bdfe84a8388f58b718c2f9
tree7d64d6931894a16df4dd777f416391a7fb77b1b0
parent64e070e8fee41523d392f9c5288643ff425b6897
Document that virNodeGetInfo can return mhz == 0.

On the s/390x architecture, libvirt may already return 0 in the
node_info->mhz field (see src/nodeinfo.c:linuxNodeInfoCPUPopulate).

We may also want to return this on aarch64 in future, because
calculating the proper value requires SMBIOS, which is not available
on non-server-class systems (specifically on systems which don't
adhere to the SBSA standard).

Therefore this change documents the existing behaviour and provides a
valid path for aarch64.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Bug-URL: https://bugzilla.redhat.com/1206353
include/libvirt/libvirt-host.h