Skip to contentSkip to conversation

HSD #1508031235-1: Override udelay for secure section

PATCH Marek Vasut 1 participant 1 message May 9, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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.