summaryrefslogtreecommitdiffstats
path: root/drivers/pci/bus.c
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2008-09-06 05:46:42 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-10-20 10:53:51 -0700
commit93ff68a55aa92180a765d6c51c3303f6200167a6 (patch)
treede921ce10f9cab4ea7a40651a99651b6f1d2b8b9 /drivers/pci/bus.c
parent5993760f7fc75b77e4701f1e56dc84c0d6cf18d5 (diff)
downloadop-kernel-dev-93ff68a55aa92180a765d6c51c3303f6200167a6.zip
op-kernel-dev-93ff68a55aa92180a765d6c51c3303f6200167a6.tar.gz
PCI: make CPU list affinity visible
Stephen Hemminger wrote: > Looks like Mike created cpulistaffinty in sysfs but never completed > the job. This patch hooks things up correctly, taking care to remove the new file when the bus is destroyed. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/bus.c')
-rw-r--r--drivers/pci/bus.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index 529d9d7..999cc40 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -151,6 +151,13 @@ void pci_bus_add_devices(struct pci_bus *bus)
if (retval)
dev_err(&dev->dev, "Error creating cpuaffinity"
" file, continuing...\n");
+
+ retval = device_create_file(&child_bus->dev,
+ &dev_attr_cpulistaffinity);
+ if (retval)
+ dev_err(&dev->dev,
+ "Error creating cpulistaffinity"
+ " file, continuing...\n");
}
}
}
OpenPOWER on IntegriCloud