mirror of
https://github.com/openbsd/src.git
synced 2026-04-20 12:14:24 +00:00
drm/i915: Order OP vs. timeout correctly in __wait_for()
From Ville Syrjala 859b14e0be9e7b0f26630510d337413c7747be51 in linux-6.18.y/6.18.21 6ad2a661ff0d3d94884947d2a593311ba46d34c2 in mainline linux
This commit is contained in:
@@ -25,9 +25,9 @@
|
||||
might_sleep(); \
|
||||
for (;;) { \
|
||||
const bool expired__ = ktime_after(ktime_get_raw(), end__); \
|
||||
OP; \
|
||||
/* Guarantee COND check prior to timeout */ \
|
||||
barrier(); \
|
||||
OP; \
|
||||
if (COND) { \
|
||||
ret__ = 0; \
|
||||
break; \
|
||||
|
||||
Reference in New Issue
Block a user