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>
This commit is contained in:
committed by
Patrick Georgi
parent
358ec83d03
commit
a4a9ad58ba
@@ -433,7 +433,7 @@ static void generate_P_state_entries(int core, int cores_per_package)
|
|||||||
{
|
{
|
||||||
int ratio_min, ratio_max, ratio_step;
|
int ratio_min, ratio_max, ratio_step;
|
||||||
int coord_type, power_max, power_unit, num_entries;
|
int coord_type, power_max, power_unit, num_entries;
|
||||||
int ratio, power, clock, clock_max;
|
int ratio, power, clock;
|
||||||
int turbo;
|
int turbo;
|
||||||
u32 control_status;
|
u32 control_status;
|
||||||
msr_t msr;
|
msr_t msr;
|
||||||
@@ -448,7 +448,6 @@ static void generate_P_state_entries(int core, int cores_per_package)
|
|||||||
msr = rdmsr(MSR_PLATFORM_INFO);
|
msr = rdmsr(MSR_PLATFORM_INFO);
|
||||||
ratio_min = (msr.hi >> 8) & 0xff; // LFM
|
ratio_min = (msr.hi >> 8) & 0xff; // LFM
|
||||||
ratio_max = (msr.lo >> 8) & 0xff; // HFM
|
ratio_max = (msr.lo >> 8) & 0xff; // HFM
|
||||||
clock_max = (ratio_max * 100);
|
|
||||||
|
|
||||||
/* Calculate CPU TDP in mW */
|
/* Calculate CPU TDP in mW */
|
||||||
msr = rdmsr(MSR_PKG_POWER_SKU_UNIT);
|
msr = rdmsr(MSR_PKG_POWER_SKU_UNIT);
|
||||||
|
Reference in New Issue
Block a user