Skip to content

Commit 9eb51a8

Browse files
Yury Norovrafaeljw
authored andcommitted
ACPI: PAD: Use sysfs_emit() in idlecpus_show()
idlecpus_show() is a sysfs show callback. Use sysfs_emit() and cpumask_pr_args() to emit the mask. This prepares for removing cpumap_print_to_pagebuf(). Signed-off-by: Yury Norov <ynorov@nvidia.com> [ rjw: Subject tweaks ] Link: https://patch.msgid.link/20260528183625.870813-6-ynorov@nvidia.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent cb3e497 commit 9eb51a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/acpi/acpi_pad.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ static ssize_t idlecpus_store(struct device *dev,
336336
static ssize_t idlecpus_show(struct device *dev,
337337
struct device_attribute *attr, char *buf)
338338
{
339-
return cpumap_print_to_pagebuf(false, buf,
340-
to_cpumask(pad_busy_cpus_bits));
339+
return sysfs_emit(buf, "%*pb\n",
340+
cpumask_pr_args(to_cpumask(pad_busy_cpus_bits)));
341341
}
342342

343343
static DEVICE_ATTR_RW(idlecpus);

0 commit comments

Comments
 (0)