diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-10 09:12:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-10 09:12:18 -0500 |
commit | 4e9b1c184cadbece3694603de5f880b6e35bd7a7 (patch) | |
tree | 8ae2ab8a4eaab4d46b4460284fd5ee475ce9a42d /drivers/pci | |
parent | 0176260fc30842e358cf34afa7dcd9413db44822 (diff) | |
parent | 36c401a44abcc389a00f9cd14892c9cf9bf0780d (diff) |
Merge branch 'cpus4096-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'cpus4096-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
[IA64] fix typo in cpumask_of_pcibus()
x86: fix x86_32 builds for summit and es7000 arch's
cpumask: use work_on_cpu in acpi-cpufreq.c for read_measured_perf_ctrs
cpumask: use work_on_cpu in acpi-cpufreq.c for drv_read and drv_write
cpumask: use cpumask_var_t in acpi-cpufreq.c
cpumask: use work_on_cpu in acpi/cstate.c
cpumask: convert struct cpufreq_policy to cpumask_var_t
cpumask: replace CPUMASK_ALLOC etc with cpumask_var_t
x86: cleanup remaining cpumask_t ops in smpboot code
cpumask: update pci_bus_show_cpuaffinity to use new cpumask API
cpumask: update local_cpus_show to use new cpumask API
ia64: cpumask fix for is_affinity_mask_valid()
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci-sysfs.c | 12 | ||||
-rw-r--r-- | drivers/pci/probe.c | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index c23619fb6c4b..db7ec14fa719 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c | |||
@@ -71,11 +71,11 @@ static ssize_t broken_parity_status_store(struct device *dev, | |||
71 | static ssize_t local_cpus_show(struct device *dev, | 71 | static ssize_t local_cpus_show(struct device *dev, |
72 | struct device_attribute *attr, char *buf) | 72 | struct device_attribute *attr, char *buf) |
73 | { | 73 | { |
74 | cpumask_t mask; | 74 | const struct cpumask *mask; |
75 | int len; | 75 | int len; |
76 | 76 | ||
77 | mask = pcibus_to_cpumask(to_pci_dev(dev)->bus); | 77 | mask = cpumask_of_pcibus(to_pci_dev(dev)->bus); |
78 | len = cpumask_scnprintf(buf, PAGE_SIZE-2, &mask); | 78 | len = cpumask_scnprintf(buf, PAGE_SIZE-2, mask); |
79 | buf[len++] = '\n'; | 79 | buf[len++] = '\n'; |
80 | buf[len] = '\0'; | 80 | buf[len] = '\0'; |
81 | return len; | 81 | return len; |
@@ -85,11 +85,11 @@ static ssize_t local_cpus_show(struct device *dev, | |||
85 | static ssize_t local_cpulist_show(struct device *dev, | 85 | static ssize_t local_cpulist_show(struct device *dev, |
86 | struct device_attribute *attr, char *buf) | 86 | struct device_attribute *attr, char *buf) |
87 | { | 87 | { |
88 | cpumask_t mask; | 88 | const struct cpumask *mask; |
89 | int len; | 89 | int len; |
90 | 90 | ||
91 | mask = pcibus_to_cpumask(to_pci_dev(dev)->bus); | 91 | mask = cpumask_of_pcibus(to_pci_dev(dev)->bus); |
92 | len = cpulist_scnprintf(buf, PAGE_SIZE-2, &mask); | 92 | len = cpulist_scnprintf(buf, PAGE_SIZE-2, mask); |
93 | buf[len++] = '\n'; | 93 | buf[len++] = '\n'; |
94 | buf[len] = '\0'; | 94 | buf[len] = '\0'; |
95 | return len; | 95 | return len; |
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 303644614eea..55ec44a27e89 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -51,12 +51,12 @@ static ssize_t pci_bus_show_cpuaffinity(struct device *dev, | |||
51 | char *buf) | 51 | char *buf) |
52 | { | 52 | { |
53 | int ret; | 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 | ret = type? | 57 | ret = type? |
58 | cpulist_scnprintf(buf, PAGE_SIZE-2, &cpumask) : | 58 | cpulist_scnprintf(buf, PAGE_SIZE-2, cpumask) : |
59 | cpumask_scnprintf(buf, PAGE_SIZE-2, &cpumask); | 59 | cpumask_scnprintf(buf, PAGE_SIZE-2, cpumask); |
60 | buf[ret++] = '\n'; | 60 | buf[ret++] = '\n'; |
61 | buf[ret] = '\0'; | 61 | buf[ret] = '\0'; |
62 | return ret; | 62 | return ret; |