HSD #1508031235-1: Override udelay for secure section
A message that is not in the archive (sent off-list or not yet received): [email protected]
On 5/9/22 06:59, [email protected] wrote:
Drop the HSD from subject, use ARM: socfpga: tags .
[...]
Review
Quoted 7 lines
(quoted diff) +7
-0+__always_inline void __udelay(unsigned long usec) +{ + /* get current timestamp */ + u64 tmp = __get_time_stamp() + __usec_to_tick(usec); + + while (__get_time_stamp() < tmp + 1) /* loop till event */ + ;
Please handle wrap-around here.