Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d0c0a3a authored by Chinmay Agarwal's avatar Chinmay Agarwal Committed by Gerrit - the friendly Code Review server
Browse files

data-kernel: rmnet: shs: Fix Errors Reported during Static Analysis.



Set the weights to be used in calculating "avg_pps", when the flow is
executing on the Perf CPU's in function "rmnet_shs_wq_get_flow_avg_pps".

Change-Id: Ia50db34a348c068a9b1bf3171fced858ce0a62de
Signed-off-by: default avatarChinmay Agarwal <chinagar@codeaurora.org>
parent 7f367513
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -455,6 +455,9 @@ static u64 rmnet_shs_wq_get_flow_avg_pps(struct rmnet_shs_wq_hstat_s *hnode)
		/* More weight to current value */
		new_weight = rmnet_shs_wq_tuning;
		old_weight = 100 - rmnet_shs_wq_tuning;
	} else {
		old_weight = rmnet_shs_wq_tuning;
		new_weight = 100 - rmnet_shs_wq_tuning;
	}

	/* computing weighted average per flow, if the flow has just started,