]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodeinfo: enable nodeGetCPUCount for older kernels
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Tue, 13 Nov 2012 12:54:36 +0000 (13:54 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 15 Nov 2012 03:43:54 +0000 (20:43 -0700)
commit0c996c10e41baf219eaaae12afc76fe20e64e121
tree205390b4403bcc8c588dbe44d11e86b209de3003
parent39c814ff46da3db0520ddc29b1d62a03cab240b5
nodeinfo: enable nodeGetCPUCount for older kernels

Since /sys/devices/system/cpu/present is not available on
older kernels like on RHEL 5.x nodeGetCPUCount will
fail there. The fallback implemented is to scan for
/sys/devices/system/cpu/cpuNN entries.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/nodeinfo.c