mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
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>
This commit is contained in:
parent
163d9808b9
commit
32dfaab71f
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user