cpumask: update pci_bus_show_cpuaffinity to use new cpumask API

Impact: use new cpumask API to reduce stack usage

Replace the local cpumask_t variable with a pointer to the
const cpumask that needs to be printed.

Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Mike Travis and committed by
Ingo Molnar
588235bb 3be83050

+4 -4
+4 -4
drivers/pci/probe.c
··· 51 51 char *buf) 52 52 { 53 53 int ret; 54 - cpumask_t cpumask; 54 + const struct cpumask *cpumask; 55 55 56 - cpumask = pcibus_to_cpumask(to_pci_bus(dev)); 56 + cpumask = cpumask_of_pcibus(to_pci_bus(dev)); 57 57 ret = type? 58 - cpulist_scnprintf(buf, PAGE_SIZE-2, &cpumask) : 59 - cpumask_scnprintf(buf, PAGE_SIZE-2, &cpumask); 58 + cpulist_scnprintf(buf, PAGE_SIZE-2, cpumask) : 59 + cpumask_scnprintf(buf, PAGE_SIZE-2, cpumask); 60 60 buf[ret++] = '\n'; 61 61 buf[ret] = '\0'; 62 62 return ret;