diff options
| author | Mark Brown <broonie@kernel.org> | 2026-08-17 17:15:54 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-08-17 17:15:54 +0100 |
| commit | 6bb1934444d7db132ec7c03c4caf039992bcae69 (patch) | |
| tree | fc8b63cf9cc0959da5dc9d42acd654d65c800b58 /drivers/pci | |
| parent | 1e97b0de196e97b336be6af5f11ebc780a986962 (diff) | |
| parent | f4806cc63cc65bd752fd72d84937614dca6504ec (diff) | |
| download | linux-next-6bb1934444d7db132ec7c03c4caf039992bcae69.tar.gz linux-next-6bb1934444d7db132ec7c03c4caf039992bcae69.zip | |
Merge branch 'bitmap-for-next' of https://github.com/norov/linux.git
Diffstat (limited to 'drivers/pci')
| -rw-r--r-- | drivers/pci/pci-sysfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 204980026f97..1f21856aac8a 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -112,7 +112,8 @@ static ssize_t pci_dev_show_local_cpu(struct device *dev, bool list, #else mask = cpumask_of_pcibus(to_pci_dev(dev)->bus); #endif - return cpumap_print_to_pagebuf(list, buf, mask); + return sysfs_emit(buf, list ? "%*pbl\n" : "%*pb\n", + cpumask_pr_args(mask)); } static ssize_t local_cpus_show(struct device *dev, @@ -137,7 +138,7 @@ static ssize_t cpuaffinity_show(struct device *dev, { const struct cpumask *cpumask = cpumask_of_pcibus(to_pci_bus(dev)); - return cpumap_print_to_pagebuf(false, buf, cpumask); + return sysfs_emit(buf, "%*pb\n", cpumask_pr_args(cpumask)); } static DEVICE_ATTR_RO(cpuaffinity); @@ -146,7 +147,7 @@ static ssize_t cpulistaffinity_show(struct device *dev, { const struct cpumask *cpumask = cpumask_of_pcibus(to_pci_bus(dev)); - return cpumap_print_to_pagebuf(true, buf, cpumask); + return sysfs_emit(buf, "%*pbl\n", cpumask_pr_args(cpumask)); } static DEVICE_ATTR_RO(cpulistaffinity); |
