mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
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: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
parent
80003d86a6
commit
9d811b856e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue