summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Norov <ynorov@nvidia.com>2026-03-03 15:08:38 -0500
committerYury Norov <ynorov@nvidia.com>2026-04-09 13:28:05 -0400
commitf3d8bb94255117aa7b405c949277c874c1c496f0 (patch)
treed25f942d2138c538cea83910160fcd7bbb2dc1fc
parent6f3aa76b3db44f93013702348c31d479931e681d (diff)
thermal: intel: switch cpumask_get() to using cpumask_print_to_pagebuf()
The function opencodes cpumask_print_to_pagebuf() with more generic bitmap_print_to_pagebuf(). Switch to using the proper API. Signed-off-by: Yury Norov <ynorov@nvidia.com>
-rw-r--r--drivers/thermal/intel/intel_powerclamp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/intel/intel_powerclamp.c b/drivers/thermal/intel/intel_powerclamp.c
index 9a4cec000910..ccf380da12f2 100644
--- a/drivers/thermal/intel/intel_powerclamp.c
+++ b/drivers/thermal/intel/intel_powerclamp.c
@@ -200,8 +200,7 @@ static int cpumask_get(char *buf, const struct kernel_param *kp)
if (!cpumask_available(idle_injection_cpu_mask))
return -ENODEV;
- return bitmap_print_to_pagebuf(false, buf, cpumask_bits(idle_injection_cpu_mask),
- nr_cpumask_bits);
+ return cpumap_print_to_pagebuf(false, buf, idle_injection_cpu_mask);
}
static const struct kernel_param_ops cpumask_ops = {