Werner Zeh has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/69185 )
Change subject: soc/intel/block/power_limit: Avoid MSR read if it is not needed ......................................................................
soc/intel/block/power_limit: Avoid MSR read if it is not needed
In function 'set_power_limits' there is a path to bail out early if the Kconfig switch SOC_INTEL_DISABLE_POWER_LIMITS is selected. In this case reading the MSR PLATFORM_INFO is useless and can be avoided. So read it right before the value is needed.
This was found by the scanbuild.
In addition, fix an unnecessary line break to increase code readability.
Change-Id: Ibdededdfd56287fb9b9223e78033a3cd6425e1a2 Signed-off-by: Werner Zeh werner.zeh@siemens.com --- M src/soc/intel/common/block/power_limit/power_limit.c 1 file changed, 22 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/69185/2