projects
/
project
/
bcm63xx
/
atf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80003d8
)
delay: correct timeout_init_us()
author
Yann Gautier
<yann.gautier@st.com>
Tue, 8 Oct 2019 09:13:06 +0000
(11:13 +0200)
committer
Yann Gautier
<yann.gautier@st.com>
Tue, 8 Oct 2019 09:13:06 +0000
(11:13 +0200)
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>
include/drivers/delay_timer.h
patch
|
blob
|
history
diff --git
a/include/drivers/delay_timer.h
b/include/drivers/delay_timer.h
index e5044cc6e17e8b86383090447111b2d3c1f7ed33..20a55435702330533f5927547fe16a51d84e8fbd 100644
(file)
--- a/
include/drivers/delay_timer.h
+++ b/
include/drivers/delay_timer.h
@@
-36,7
+36,7
@@
static inline uint64_t timeout_init_us(uint32_t us)
{
uint64_t cnt = timeout_cnt_us2cnt(us);
- cnt += read_cnt
frq
_el0();
+ cnt += read_cnt
pct
_el0();
return cnt;
}