summaryrefslogtreecommitdiff
path: root/src/mainboard/google/asurada
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-12-09 12:16:39 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-12-10 14:30:12 +0000
commit92226dc6c3a769c0ba107b002ae05aee907b14e2 (patch)
treeae175d332002d47605f526571690fe4e00577c44 /src/mainboard/google/asurada
parentdbd2362caaa36af41efb22a04bdefcc4b52639b7 (diff)
soc/intel/{skylake/cannonlake}: Fix bug in vr_config
The `cpu_get_power_max()` function returns the TDP in milliwatts, but the vr_config code interprets the value in watts. Divide the value by 1000 to fix this. This also fixes an integer overflow when `cpu_get_power_max()` returns a value greater than 65535 (UINT16_MAX). Change-Id: Ibe9e0db6762eee5cc363f8b371c8538eb92f6308 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60001 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/mainboard/google/asurada')
0 files changed, 0 insertions, 0 deletions