summaryrefslogtreecommitdiffstats
path: root/kernel/smpboot.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2017-10-19 19:05:46 +0200
committerEduardo Valentin <edubezval@gmail.com>2017-10-31 19:32:15 -0700
commit48880b979cdc9ef5a70af020f42b8ba1e51dbd34 (patch)
treee1318ec32d7d49f47db5b8612ff088e35c509e13 /kernel/smpboot.c
parent2cb4de785c40d4a2132cfc13e63828f5a28c3351 (diff)
downloadtalos-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
OpenPOWER on IntegriCloud