Skip to content

Commit f6d6f7d

Browse files
authored
Merge pull request #619 from lrh2000/sleep-relax-cpu
lkl: relax cpu during __ndelay()
2 parents 9c51103 + 7c64de1 commit f6d6f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/lkl/kernel/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void __ndelay(unsigned long nsecs)
1414
unsigned long long start = lkl_ops->time();
1515

1616
while (lkl_ops->time() < start + nsecs)
17-
;
17+
cpu_relax();
1818
}
1919

2020
void __udelay(unsigned long usecs)

0 commit comments

Comments
 (0)