mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
thermal: intel: Use sysfs_emit() for powerclamp cpumask
cpumask_get() is used as a sysfs getter for the cpumask module parameter. 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> Link: https://patch.msgid.link/20260528183625.870813-16-ynorov@nvidia.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
8aa807a89d
commit
7244cbbdb8
|
|
@ -200,7 +200,7 @@ static int cpumask_get(char *buf, const struct kernel_param *kp)
|
|||
if (!cpumask_available(idle_injection_cpu_mask))
|
||||
return -ENODEV;
|
||||
|
||||
return cpumap_print_to_pagebuf(false, buf, idle_injection_cpu_mask);
|
||||
return sysfs_emit(buf, "%*pb\n", cpumask_pr_args(idle_injection_cpu_mask));
|
||||
}
|
||||
|
||||
static const struct kernel_param_ops cpumask_ops = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user