提交 abf013bf 编写于 作者: S Stratos Karafotis 提交者: Rafael J. Wysocki

cpufreq: intel_pstate: Remove unnecessary intermediate variable sample_time

Remove the unnecessary intermediate assignment and use directly the
pid_params.sample_rate_ms variable.
Signed-off-by: NStratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: NDirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 285cb990
...@@ -599,10 +599,9 @@ static inline void intel_pstate_sample(struct cpudata *cpu) ...@@ -599,10 +599,9 @@ static inline void intel_pstate_sample(struct cpudata *cpu)
static inline void intel_pstate_set_sample_time(struct cpudata *cpu) static inline void intel_pstate_set_sample_time(struct cpudata *cpu)
{ {
int sample_time, delay; int delay;
sample_time = pid_params.sample_rate_ms; delay = msecs_to_jiffies(pid_params.sample_rate_ms);
delay = msecs_to_jiffies(sample_time);
mod_timer_pinned(&cpu->timer, jiffies + delay); mod_timer_pinned(&cpu->timer, jiffies + delay);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册