Skip to content

Commit 497823b

Browse files
Yury Norovrafaeljw
authored andcommitted
powercap: intel_rapl: Use sysfs_emit() in cpumask_show()
cpumask_show() is a sysfs show callback, so use sysfs_emit() and cpumask_pr_args() to emit the mask in it. This prepares for removing cpumap_print_to_pagebuf(). Signed-off-by: Yury Norov <ynorov@nvidia.com> [ rjw: Subject and changelog tweaks ] Link: https://patch.msgid.link/20260528183625.870813-15-ynorov@nvidia.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent bfc7d93 commit 497823b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/powercap/intel_rapl_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ static ssize_t cpumask_show(struct device *dev,
14411441
}
14421442
cpus_read_unlock();
14431443

1444-
ret = cpumap_print_to_pagebuf(true, buf, cpu_mask);
1444+
ret = sysfs_emit(buf, "%*pbl\n", cpumask_pr_args(cpu_mask));
14451445

14461446
free_cpumask_var(cpu_mask);
14471447

0 commit comments

Comments
 (0)