soc: rockchip: ipa: Fix temperature scaling coefficient overflow

Change-Id: I052cf01bd6e881b20667957da6b7781a380de3b4
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
Finley Xiao 2020-01-10 11:55:38 +08:00 committed by Tao Huang
parent b38f44bb32
commit 8d482837ab

View File

@ -104,7 +104,7 @@ static u32 calculate_temp_scaling_factor(s32 ts[4], s64 t)
const s64 res_big = ts[3] * t3
+ ts[2] * t2
+ ts[1] * t
+ ts[0] * 1000;
+ ts[0] * 1000LL;
s64 res_unclamped = div_s64(res_big, 1000);