Skip to content
Commit 219fe504 authored by Maria Yu's avatar Maria Yu
Browse files

kernel: time: Fix low resolution timer not fire in 32bit case



Low resolution timer is not fired to run at given expired time
which is equal to this cpu's base clk time. This is caused by
32bit intergar overflow.
When pos_up is 0, and pos_down is -1, with unsigned add, it will
not seen pos_up + clk is bigger than pos_down + clk. So add
an cast to u64 to have the expected result.

Change-Id: I45777a1fd282d8f70ba94528b04fce2f0436d7e4
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent e7325167
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment