diff options
Diffstat (limited to 'drivers/acpi/acpi_pad.c')
| -rw-r--r-- | drivers/acpi/acpi_pad.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index f148a0580e04..c7b105c0e1d3 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c | |||
| @@ -350,12 +350,10 @@ static ssize_t acpi_pad_idlecpus_store(struct device *dev, | |||
| 350 | static ssize_t acpi_pad_idlecpus_show(struct device *dev, | 350 | static ssize_t acpi_pad_idlecpus_show(struct device *dev, |
| 351 | struct device_attribute *attr, char *buf) | 351 | struct device_attribute *attr, char *buf) |
| 352 | { | 352 | { |
| 353 | int n = 0; | 353 | return cpumap_print_to_pagebuf(false, buf, |
| 354 | n = cpumask_scnprintf(buf, PAGE_SIZE-2, to_cpumask(pad_busy_cpus_bits)); | 354 | to_cpumask(pad_busy_cpus_bits)); |
| 355 | buf[n++] = '\n'; | ||
| 356 | buf[n] = '\0'; | ||
| 357 | return n; | ||
| 358 | } | 355 | } |
| 356 | |||
| 359 | static DEVICE_ATTR(idlecpus, S_IRUGO|S_IWUSR, | 357 | static DEVICE_ATTR(idlecpus, S_IRUGO|S_IWUSR, |
| 360 | acpi_pad_idlecpus_show, | 358 | acpi_pad_idlecpus_show, |
| 361 | acpi_pad_idlecpus_store); | 359 | acpi_pad_idlecpus_store); |
