Message ID | 45c87bec3397fdd704376807f0eec5cc71be440f.1685692810.git.geert+renesas@glider.be |
---|---|
State | Accepted |
Commit | b407460ee99033503993ac7437d593451fcdfe44 |
Headers | show |
Series | iopoll: Busy loop and timeout improvements + conversions | expand |
diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h index 2c8860e406bd8cae..0417360a6db9b0d6 100644 --- a/include/linux/iopoll.h +++ b/include/linux/iopoll.h @@ -53,6 +53,7 @@ } \ if (__sleep_us) \ usleep_range((__sleep_us >> 2) + 1, __sleep_us); \ + cpu_relax(); \ } \ (cond) ? 0 : -ETIMEDOUT; \ }) @@ -95,6 +96,7 @@ } \ if (__delay_us) \ udelay(__delay_us); \ + cpu_relax(); \ } \ (cond) ? 0 : -ETIMEDOUT; \ })