diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2017-10-19 19:05:46 +0200 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2017-10-31 19:32:15 -0700 |
commit | 48880b979cdc9ef5a70af020f42b8ba1e51dbd34 (patch) | |
tree | e1318ec32d7d49f47db5b8612ff088e35c509e13 /kernel/smpboot.c | |
parent | 2cb4de785c40d4a2132cfc13e63828f5a28c3351 (diff) | |
download | talos-obmc-linux-48880b979cdc9ef5a70af020f42b8ba1e51dbd34.tar.gz talos-obmc-linux-48880b979cdc9ef5a70af020f42b8ba1e51dbd34.zip |
thermal/drivers/hisi: Simplify the temperature/step computation
The step and the base temperature are fixed values, we can simplify the
computation by converting the base temperature to milli celsius and use a
pre-computed step value. That saves us a lot of mult + div for nothing at
runtime.
Take also the opportunity to change the function names to be consistent with
the rest of the code.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Tested-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'kernel/smpboot.c')
0 files changed, 0 insertions, 0 deletions