Skip to content

Commit

Permalink
cpufreq: intel_pstate: Remove unnecessary intermediate variable sampl…
Browse files Browse the repository at this point in the history
…e_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>
  • Loading branch information
Stratos Karafotis authored and Rafael J. Wysocki committed Jul 21, 2014
1 parent 285cb99 commit abf013b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/cpufreq/intel_pstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,9 @@ static inline void intel_pstate_sample(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(sample_time);
delay = msecs_to_jiffies(pid_params.sample_rate_ms);
mod_timer_pinned(&cpu->timer, jiffies + delay);
}

Expand Down

0 comments on commit abf013b

Please sign in to comment.