hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/iopoll.h
....@@ -53,6 +53,7 @@
5353 } \
5454 if (__sleep_us) \
5555 usleep_range((__sleep_us >> 2) + 1, __sleep_us); \
56
+ cpu_relax(); \
5657 } \
5758 (cond) ? 0 : -ETIMEDOUT; \
5859 })
....@@ -95,6 +96,7 @@
9596 } \
9697 if (__delay_us) \
9798 udelay(__delay_us); \
99
+ cpu_relax(); \
98100 } \
99101 (cond) ? 0 : -ETIMEDOUT; \
100102 })