diff options
author | Stratos Karafotis <stratosk@semaphore.gr> | 2014-07-18 11:37:22 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-21 07:43:18 -0400 |
commit | abf013bffeb55744fb6d1ff9bb30acaabe6302ab (patch) | |
tree | cb68e992c513a6a8bc647f955a77a4058113e11b | |
parent | 285cb99091fad1416958eb7d9fb8ecf7328d8bef (diff) |
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: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index dee9e5882937..e0ed078988c5 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -599,10 +599,9 @@ static inline void intel_pstate_sample(struct cpudata *cpu) | |||
599 | 599 | ||
600 | static inline void intel_pstate_set_sample_time(struct cpudata *cpu) | 600 | static inline void intel_pstate_set_sample_time(struct cpudata *cpu) |
601 | { | 601 | { |
602 | int sample_time, delay; | 602 | int delay; |
603 | 603 | ||
604 | sample_time = pid_params.sample_rate_ms; | 604 | delay = msecs_to_jiffies(pid_params.sample_rate_ms); |
605 | delay = msecs_to_jiffies(sample_time); | ||
606 | mod_timer_pinned(&cpu->timer, jiffies + delay); | 605 | mod_timer_pinned(&cpu->timer, jiffies + delay); |
607 | } | 606 | } |
608 | 607 | ||