thermal: intel: int340x: Add module parameter to change slider offset
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 25 Aug 2025 13:23:15 +0000 (06:23 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 25 Aug 2025 13:44:47 +0000 (15:44 +0200)
commit8306bcaba06dfa658e3dd852e930b0154cb46c9f
treeb04e460f48439226d6779939171b26147b976600
parent4a64a748e45cded20443ad54826ac78b3967de15
thermal: intel: int340x: Add module parameter to change slider offset

SoC slider value is set by the user (or the default when user has not
modified it). To enhance power efficiency dynamically, the firmware can
optionally auto-adjust the slider value based on the current workload.
This adjustment is governed by an additional parameter known as the
"slider offset". This offset permits the firmware to increase the slider
value up to and including "SoC slider + slider offset".

Add a module parameter to specify this "slier offset" value.

By default, the SoC slider offset is set to 0. This means that SoC is not
allowed to switch slider position.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://patch.msgid.link/20250825132315.75521-5-srinivas.pandruvada@linux.intel.com
[ rjw: Comment and module param description adjustments ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/processor_thermal_soc_slider.c