diff options
| author | Yury Norov <ynorov@nvidia.com> | 2026-07-02 11:47:17 -0400 |
|---|---|---|
| committer | Yury Norov <ynorov@nvidia.com> | 2026-07-22 15:38:37 -0400 |
| commit | 32dfaab71f28574490d2ad37674f1784c1f18b6e (patch) | |
| tree | 4877d258e9a7ad5072d17de0ca881ae907a29918 | |
| parent | 163d9808b9358de119b621df94a19b5cd21831bb (diff) | |
| download | linux-next-32dfaab71f28574490d2ad37674f1784c1f18b6e.tar.gz linux-next-32dfaab71f28574490d2ad37674f1784c1f18b6e.zip | |
cpu: Use sysfs_emit() for cpumask show callback
show_cpus_attr() 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>
| -rw-r--r-- | drivers/base/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 19d288a3c80c..69e52fed4241 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -218,7 +218,7 @@ static ssize_t show_cpus_attr(struct device *dev, { struct cpu_attr *ca = container_of(attr, struct cpu_attr, attr); - return cpumap_print_to_pagebuf(true, buf, ca->map); + return sysfs_emit(buf, "%*pbl\n", cpumask_pr_args(ca->map)); } #define _CPU_ATTR(name, map) \ |
