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

Commit 92064445 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "kernel: time: Fix low resolution timer not fire in 32bit case" into msm-4.14

parents b108225d 928edf08
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1385,8 +1385,8 @@ static int next_pending_bucket(struct timer_base *base, unsigned offset,

	pos = find_next_bit(base->pending_map, start, offset);
	pos_down = pos < start ? pos + LVL_SIZE - start : -1;
	if (((pos_up + base->clk) << LVL_SHIFT(lvl)) >
		((pos_down + base->clk) << LVL_SHIFT(lvl)))
	if (((pos_up + (u64)base->clk) << LVL_SHIFT(lvl)) >
		((pos_down + (u64)base->clk) << LVL_SHIFT(lvl)))
		return pos_down;
	return pos_up;
}