summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-04-23 22:14:00 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-04-25 15:54:30 +0000
commita4a9ad58ba685d5755a943c4a267c98a34f21599 (patch)
treef65700c86a887be8b07801cfb4bc853e3b515423 /src/soc
parent358ec83d03d67a0215c6cad7c18f2119b55dc8c2 (diff)
downloadcoreboot-a4a9ad58ba685d5755a943c4a267c98a34f21599.tar.xz
src/soc/intel: Remove unused variables
Change-Id: Ie81377a31e6527c5fd5aaea99f08527912e870a0 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32425 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/fsp_broadwell_de/acpi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/acpi.c b/src/soc/intel/fsp_broadwell_de/acpi.c
index a0c9ee538e..b1ea0935a7 100644
--- a/src/soc/intel/fsp_broadwell_de/acpi.c
+++ b/src/soc/intel/fsp_broadwell_de/acpi.c
@@ -433,7 +433,7 @@ static void generate_P_state_entries(int core, int cores_per_package)
{
int ratio_min, ratio_max, ratio_step;
int coord_type, power_max, power_unit, num_entries;
- int ratio, power, clock, clock_max;
+ int ratio, power, clock;
int turbo;
u32 control_status;
msr_t msr;
@@ -448,7 +448,6 @@ static void generate_P_state_entries(int core, int cores_per_package)
msr = rdmsr(MSR_PLATFORM_INFO);
ratio_min = (msr.hi >> 8) & 0xff; // LFM
ratio_max = (msr.lo >> 8) & 0xff; // HFM
- clock_max = (ratio_max * 100);
/* Calculate CPU TDP in mW */
msr = rdmsr(MSR_PKG_POWER_SKU_UNIT);