<p>Mario Scheithauer has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/25584">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/intel/common/block/cpu: Fix cpu_get_power_max<br><br>To avoid rounding errors with the current data types, the formula in<br>this function must be converted.<br><br>Change-Id: I75d05165fd9e5a0992330df00f8665a05d2daeb3<br>Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com><br>---<br>M src/soc/intel/common/block/cpu/cpulib.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/84/25584/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/intel/common/block/cpu/cpulib.c b/src/soc/intel/common/block/cpu/cpulib.c</span><br><span>index ed1ba0f..0b1599a 100644</span><br><span>--- a/src/soc/intel/common/block/cpu/cpulib.c</span><br><span>+++ b/src/soc/intel/common/block/cpu/cpulib.c</span><br><span>@@ -287,7 +287,7 @@</span><br><span>  msr = rdmsr(MSR_PKG_POWER_SKU_UNIT);</span><br><span>         power_unit = 2 << ((msr.lo & 0xf) - 1);</span><br><span>    msr = rdmsr(MSR_PKG_POWER_SKU);</span><br><span style="color: hsl(0, 100%, 40%);">- return ((msr.lo & 0x7fff) / power_unit) * 1000;</span><br><span style="color: hsl(120, 100%, 40%);">+   return (msr.lo & 0x7fff) * 1000 / power_unit;</span><br><span> }</span><br><span> </span><br><span> uint32_t cpu_get_max_turbo_ratio(void)</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/25584">change 25584</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/25584"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I75d05165fd9e5a0992330df00f8665a05d2daeb3 </div>
<div style="display:none"> Gerrit-Change-Number: 25584 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Mario Scheithauer <mario.scheithauer@siemens.com> </div>