amd/amdfam10: Fix invalid transition latency in PowerNow! _PSS objects
Fix a mistake that led to an invalid 0ms latency in the automatically generated PowerNow! ACPI _PSS objects. TEST: Booted FreeBSD and Linux and verified correct latency values. Found-by: Coverity Scan Change-Id: I03cecab694708136dc555ca2af7ee9a0bf9be5af Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: http://review.coreboot.org/8376 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
2213843ae8
commit
c1f47c1460
|
@ -212,7 +212,7 @@ static void pstates_algorithm(u32 pcontrol_blk, u8 plen, u8 onlyBSP)
|
|||
power_step_up = (dtemp & 0xf000000) >> 24;
|
||||
power_step_down = (dtemp & 0xf00000) >> 20;
|
||||
dtemp = pci_read_config32(dev_find_slot(0, PCI_DEVFN(0x18, 3)), 0xA0);
|
||||
pll_lock_time = (pll_lock_time & 0x3800) >> 11;
|
||||
pll_lock_time = (dtemp & 0x3800) >> 11;
|
||||
if (all_enabled_cores_have_same_cpufid)
|
||||
core_latency = ((12 * power_step_down) + power_step_up) / 1000;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue