On Thu, May 28, 2026 at 8:36 PM Yury Norov <[email protected]> wrote: > > 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 <[email protected]> > --- > drivers/acpi/acpi_pad.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c > index ec94b09bb747..04d61a6cc95f 100644 > --- a/drivers/acpi/acpi_pad.c > +++ b/drivers/acpi/acpi_pad.c > @@ -334,8 +334,8 @@ static ssize_t idlecpus_store(struct device *dev, > static ssize_t idlecpus_show(struct device *dev, > struct device_attribute *attr, char *buf) > { > - return cpumap_print_to_pagebuf(false, buf, > - to_cpumask(pad_busy_cpus_bits)); > + return sysfs_emit(buf, "%*pb\n", > + cpumask_pr_args(to_cpumask(pad_busy_cpus_bits))); > } > > static DEVICE_ATTR_RW(idlecpus); > --
Applied (with a tweaked subject) as 7.2 material, thanks!

