|
@@ -776,6 +776,11 @@ static inline void intel_pstate_sample(struct cpudata *cpu)
|
|
local_irq_save(flags);
|
|
local_irq_save(flags);
|
|
rdmsrl(MSR_IA32_APERF, aperf);
|
|
rdmsrl(MSR_IA32_APERF, aperf);
|
|
rdmsrl(MSR_IA32_MPERF, mperf);
|
|
rdmsrl(MSR_IA32_MPERF, mperf);
|
|
|
|
+ if (cpu->prev_mperf == mperf) {
|
|
|
|
+ local_irq_restore(flags);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
tsc = rdtsc();
|
|
tsc = rdtsc();
|
|
local_irq_restore(flags);
|
|
local_irq_restore(flags);
|
|
|
|
|