diff options
| author | Yury Norov <ynorov@nvidia.com> | 2026-05-28 14:36:22 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-06-01 19:58:47 +0200 |
| commit | 7244cbbdb8b55879a3bf41c0f1a7339d22b3032a (patch) | |
| tree | e6848c95b5352227bff084bcef73d3596fe9e381 | |
| parent | 8aa807a89dccdff4bcfc0cfc459b1ba714badbb6 (diff) | |
| download | linux-stable-7244cbbdb8b55879a3bf41c0f1a7339d22b3032a.tar.gz linux-stable-7244cbbdb8b55879a3bf41c0f1a7339d22b3032a.zip | |
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>
| -rw-r--r-- | drivers/thermal/intel/intel_powerclamp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/intel/intel_powerclamp.c b/drivers/thermal/intel/intel_powerclamp.c index ccf380da12f2..bd7fd98dc310 100644 --- a/drivers/thermal/intel/intel_powerclamp.c +++ b/drivers/thermal/intel/intel_powerclamp.c @@ -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 = { |
