Re: [PATCH 05/16] ACPI: pad: Use sysfs_emit() for idlecpus show

From: Rafael J. Wysocki

Date: Mon Jun 01 2026 - 13:46:47 EST


On Thu, May 28, 2026 at 8:36 PM Yury Norov <ynorov@xxxxxxxxxx> 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 <ynorov@xxxxxxxxxx>
> ---
> 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!