mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
media: qcom: iris: Fix FPS calculation and VPP FW overhead
Use div_u64() instead of mult_fract as u64 operator division fails on 32 bit
systems which don't link against libgcc.
Fixes: 5c66647a5c ("media: iris: add FPS calculation and VPP FW overhead in frequency formula")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202606030132.qnBXVDkM-lkp@intel.com/
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
This commit is contained in:
parent
6a75e3d4f6
commit
10400b9455
|
|
@ -444,7 +444,7 @@ u64 iris_vpu3x_vpu4x_calculate_frequency(struct iris_inst *inst, size_t data_siz
|
|||
|
||||
/* 1.05 is VPP FW overhead */
|
||||
if (inst->fw_caps[STAGE].value == STAGE_2)
|
||||
vpp_cycles += mult_frac(vpp_cycles, 5, 100);
|
||||
vpp_cycles += div_u64(vpp_cycles * 5, 100);
|
||||
|
||||
vsp_cycles = fps * data_size * 8;
|
||||
vsp_cycles = div_u64(vsp_cycles, 2);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user