Skip to content

Commit

Permalink
cpufreq / intel_pstate: remove #ifdef MODULE compile fence
Browse files Browse the repository at this point in the history
The driver can no longer be built as a module remove the compile fence
around cpufreq tracing call.

Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Dirk Brandewie authored and Rafael J. Wysocki committed May 12, 2013
1 parent a73108d commit 35363e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/cpufreq/intel_pstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,8 @@ static void intel_pstate_set_pstate(struct cpudata *cpu, int pstate)
if (pstate == cpu->pstate.current_pstate)
return;

#ifndef MODULE
trace_cpu_frequency(pstate * 100000, cpu->cpu);
#endif

cpu->pstate.current_pstate = pstate;
wrmsrl(MSR_IA32_PERF_CTL, pstate << 8);

Expand Down

0 comments on commit 35363e9

Please sign in to comment.