Skip to content

Commit 6e7408a

Browse files
committed
cpufreq: intel_pstate: Update pid_params.sample_rate_ns in pid_param_set()
Fix the debugfs interface for PID tuning to actually update pid_params.sample_rate_ns on PID parameters updates, as changing pid_params.sample_rate_ms via debugfs has no effect now. Fixes: a4675fb (cpufreq: intel_pstate: Replace timers with utilization update callbacks) Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 4495c08 commit 6e7408a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,7 @@ static void intel_pstate_update_policies(void)
989989
static int pid_param_set(void *data, u64 val)
990990
{
991991
*(u32 *)data = val;
992+
pid_params.sample_rate_ns = pid_params.sample_rate_ms * NSEC_PER_MSEC;
992993
intel_pstate_reset_all_pid();
993994
return 0;
994995
}

0 commit comments

Comments
 (0)