mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
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:
parent
b38f44bb32
commit
8d482837ab
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user