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

Commit 1f8896a3 authored by Amir Vajid's avatar Amir Vajid
Browse files

PM / devfreq: bw_hwmon: remove unused variable



The bw_hwmon variable undo_over_req_mbps is never
used. Remove it to clean up the code.

Change-Id: Ifb81052c30cdb79d2c9d8dcda56b3cc2a58b8ec7
Signed-off-by: default avatarAmir Vajid <avajid@codeaurora.org>
parent 226ee6e1
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -409,7 +409,6 @@ static unsigned long get_bw_and_set_irq(struct hwmon_node *node,
		hw->up_wake_mbps = (max(MIN_MBPS, req_mbps)
					* (100 + node->up_thres)) / 100;
		hw->down_wake_mbps = 0;
		hw->undo_over_req_mbps = 0;
		thres = mbps_to_bytes(max(MIN_MBPS, req_mbps / 2),
					node->sample_ms);
	} else {
@@ -422,10 +421,6 @@ static unsigned long get_bw_and_set_irq(struct hwmon_node *node,
		 */
		hw->up_wake_mbps = (req_mbps * (100 + node->up_thres)) / 100;
		hw->down_wake_mbps = (meas_mbps * node->down_thres) / 100;
		if (node->wake == UP_WAKE)
			hw->undo_over_req_mbps = min(req_mbps, meas_mbps_zone);
		else
			hw->undo_over_req_mbps = 0;
		thres = mbps_to_bytes(meas_mbps, node->sample_ms);
	}

@@ -545,7 +540,6 @@ static int start_monitor(struct devfreq *df, bool init)
		mbps = (df->previous_freq * node->io_percent) / 100;
		hw->up_wake_mbps = mbps;
		hw->down_wake_mbps = MIN_MBPS;
		hw->undo_over_req_mbps = 0;
		ret = hw->start_hwmon(hw, mbps);
	} else {
		ret = hw->resume_hwmon(hw);
+0 −1
Original line number Diff line number Diff line
@@ -52,7 +52,6 @@ struct bw_hwmon {
	struct device_node	*of_node;
	struct devfreq_governor	*gov;
	unsigned long		up_wake_mbps;
	unsigned long		undo_over_req_mbps;
	unsigned long		down_wake_mbps;
	unsigned int		down_cnt;
	struct devfreq		*df;