mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
util: Define SYSFS_SYSTEM_PATH unconditionally in virhostcpu
The code is already prepared to handle the non-existence of it. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
0e3ff22c6f
commit
4082417425
@ -188,10 +188,15 @@ virHostCPUGetStatsFreeBSD(int cpuNum,
|
|||||||
|
|
||||||
#endif /* __FreeBSD__ */
|
#endif /* __FreeBSD__ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Even though it doesn't exist on some platforms, the code is adjusted for
|
||||||
|
* graceful handling of that so that we don't have too many stub functions.
|
||||||
|
*/
|
||||||
|
#define SYSFS_SYSTEM_PATH "/sys/devices/system"
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
# define CPUINFO_PATH "/proc/cpuinfo"
|
# define CPUINFO_PATH "/proc/cpuinfo"
|
||||||
# define PROCSTAT_PATH "/proc/stat"
|
# define PROCSTAT_PATH "/proc/stat"
|
||||||
# define SYSFS_SYSTEM_PATH "/sys/devices/system"
|
|
||||||
# define VIR_HOST_CPU_MASK_LEN 1024
|
# define VIR_HOST_CPU_MASK_LEN 1024
|
||||||
|
|
||||||
# define LINUX_NB_CPU_STATS 4
|
# define LINUX_NB_CPU_STATS 4
|
||||||
|
Loading…
Reference in New Issue
Block a user