From: Yury Norov Date: Tue, 3 Mar 2026 20:08:38 +0000 (-0500) Subject: thermal: intel: switch cpumask_get() to using cpumask_print_to_pagebuf() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3d8bb94255117aa7b405c949277c874c1c496f0;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/drivers/thermal/intel/intel_powerclamp.c b/drivers/thermal/intel/intel_powerclamp.c index 9a4cec0009106..ccf380da12f29 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 = {