NUMA: hide non-existing nodes from /sys/devices/system/node listing

This commit is contained in:
Balazs Gerofi
2016-11-05 16:12:08 +09:00
parent 259583e936
commit 69a5c53074
5 changed files with 75 additions and 0 deletions

View File

@@ -679,6 +679,8 @@ static int setup_node_files(struct mcctrl_usrdata *udp)
param.ptr = &udp->numa_online;
sysfsm_createf(udp->os, SYSFS_SNOOPING_OPS_pbl, &param, 0444,
"/sys/devices/system/node/online");
sysfsm_createf(udp->os, SYSFS_SNOOPING_OPS_pbl, &param, 0444,
"/sys/devices/system/node/possible");
list_for_each_entry(p, &udp->node_topology_list, chain) {
struct sysfs_handle handle;