diff options
Diffstat (limited to 'drivers/cpufreq/intel_pstate.c')
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 79606f473f48..c788abf1c457 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -51,8 +51,6 @@ static inline int32_t div_fp(int32_t x, int32_t y) | |||
51 | return div_s64((int64_t)x << FRAC_BITS, (int64_t)y); | 51 | return div_s64((int64_t)x << FRAC_BITS, (int64_t)y); |
52 | } | 52 | } |
53 | 53 | ||
54 | static u64 energy_divisor; | ||
55 | |||
56 | struct sample { | 54 | struct sample { |
57 | int32_t core_pct_busy; | 55 | int32_t core_pct_busy; |
58 | u64 aperf; | 56 | u64 aperf; |
@@ -630,12 +628,10 @@ static void intel_pstate_timer_func(unsigned long __data) | |||
630 | { | 628 | { |
631 | struct cpudata *cpu = (struct cpudata *) __data; | 629 | struct cpudata *cpu = (struct cpudata *) __data; |
632 | struct sample *sample; | 630 | struct sample *sample; |
633 | u64 energy; | ||
634 | 631 | ||
635 | intel_pstate_sample(cpu); | 632 | intel_pstate_sample(cpu); |
636 | 633 | ||
637 | sample = &cpu->samples[cpu->sample_ptr]; | 634 | sample = &cpu->samples[cpu->sample_ptr]; |
638 | rdmsrl(MSR_PKG_ENERGY_STATUS, energy); | ||
639 | 635 | ||
640 | intel_pstate_adjust_busy_pstate(cpu); | 636 | intel_pstate_adjust_busy_pstate(cpu); |
641 | 637 | ||
@@ -644,7 +640,6 @@ static void intel_pstate_timer_func(unsigned long __data) | |||
644 | cpu->pstate.current_pstate, | 640 | cpu->pstate.current_pstate, |
645 | sample->mperf, | 641 | sample->mperf, |
646 | sample->aperf, | 642 | sample->aperf, |
647 | div64_u64(energy, energy_divisor), | ||
648 | sample->freq); | 643 | sample->freq); |
649 | 644 | ||
650 | intel_pstate_set_sample_time(cpu); | 645 | intel_pstate_set_sample_time(cpu); |
@@ -926,7 +921,6 @@ static int __init intel_pstate_init(void) | |||
926 | int cpu, rc = 0; | 921 | int cpu, rc = 0; |
927 | const struct x86_cpu_id *id; | 922 | const struct x86_cpu_id *id; |
928 | struct cpu_defaults *cpu_info; | 923 | struct cpu_defaults *cpu_info; |
929 | u64 units; | ||
930 | 924 | ||
931 | if (no_load) | 925 | if (no_load) |
932 | return -ENODEV; | 926 | return -ENODEV; |
@@ -960,9 +954,6 @@ static int __init intel_pstate_init(void) | |||
960 | if (rc) | 954 | if (rc) |
961 | goto out; | 955 | goto out; |
962 | 956 | ||
963 | rdmsrl(MSR_RAPL_POWER_UNIT, units); | ||
964 | energy_divisor = 1 << ((units >> 8) & 0x1f); /* bits{12:8} */ | ||
965 | |||
966 | intel_pstate_debug_expose_params(); | 957 | intel_pstate_debug_expose_params(); |
967 | intel_pstate_sysfs_expose_params(); | 958 | intel_pstate_sysfs_expose_params(); |
968 | 959 | ||