Commit 9d811b85 authored by Yann Gautier's avatar Yann Gautier
Browse files

delay: correct timeout_init_us()



The function has to use read_cntpct_el0() to update the counter, and not
read_cntfrq_el0().

Change-Id: I9c676466e784c3122e9ffc2d87e66708797086e7
Signed-off-by: default avatarYann Gautier <yann.gautier@st.com>
parent 80003d86
......@@ -36,7 +36,7 @@ static inline uint64_t timeout_init_us(uint32_t us)
{
uint64_t cnt = timeout_cnt_us2cnt(us);
cnt += read_cntfrq_el0();
cnt += read_cntpct_el0();
return cnt;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment