summaryrefslogtreecommitdiffstats
path: root/Documentation/admin-guide/thermal/intel_powerclamp.rst
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2023-02-07 23:09:08 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-02-09 19:57:35 +0100
commit966d0ab67350c6206f8053a3e6ed0b892bdc42a5 (patch)
tree330fc6bb3ab856711f8a3b1e8a5dd7169589bb6e /Documentation/admin-guide/thermal/intel_powerclamp.rst
parent621084965459d2b9e2713844aac4d803d5bb6d67 (diff)
downloadlinux-stable-966d0ab67350c6206f8053a3e6ed0b892bdc42a5.tar.gz
linux-stable-966d0ab67350c6206f8053a3e6ed0b892bdc42a5.tar.bz2
linux-stable-966d0ab67350c6206f8053a3e6ed0b892bdc42a5.zip
thermal: intel: powerclamp: Fix duration module parameter
After the switch to use the powercap/idle-inject framework in the Intel powerclamp driver, the idle duration unit is microsecond. However, the module parameter for idle duration is in milliseconds, so convert it to microseconds in the "set" callback and back to milliseconds in a new "get" callback. While here, also use mutex protection for setting and getting "duration". The other uses of "duration" are already protected by the mutex. Fixes: 8526eb7fc75a ("thermal: intel: powerclamp: Use powercap idle-inject feature") Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/admin-guide/thermal/intel_powerclamp.rst')
0 files changed, 0 insertions, 0 deletions