mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
thermal: imx_tmu: Fix the temperature unit
The temperature unit is millidegree Celsius, so divide by 1000 to correctly print the temperature values in Celsius. While at it, also change a typo: "has beyond" to "is beyond". Signed-off-by: Fabio Estevam <festevam@denx.de>
This commit is contained in:
parent
966480fe43
commit
f4898e4b0e
1 changed files with 2 additions and 2 deletions
|
@ -238,8 +238,8 @@ int imx_tmu_get_temp(struct udevice *dev, int *temp)
|
|||
return ret;
|
||||
|
||||
while (cpu_tmp >= pdata->alert) {
|
||||
dev_crit(dev, "CPU Temperature (%dC) has beyond alert (%dC), close to critical (%dC) waiting...\n",
|
||||
cpu_tmp, pdata->alert, pdata->critical);
|
||||
dev_crit(dev, "CPU Temperature (%dC) is beyond alert (%dC), close to critical (%dC) waiting...\n",
|
||||
cpu_tmp / 1000, pdata->alert / 1000, pdata->critical / 1000);
|
||||
mdelay(pdata->polling_delay);
|
||||
ret = read_temperature(dev, &cpu_tmp);
|
||||
if (ret)
|
||||
|
|
Loading…
Add table
Reference in a new issue