]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Remove unnecessary wait when enabling interrupts
authorPaul Durrant <pdurrant@amazon.com>
Thu, 5 May 2022 13:57:41 +0000 (14:57 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 6 May 2022 11:31:54 +0000 (12:31 +0100)
There is no need for DPCs to wait: Only the main thread needs to do so.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenbus/sync.c

index c2ef681501d1941baf5361275547562f4f9c2bc6..e3b55d1d257bcd04d8e49f14f7bbeace252068e0 100644 (file)
@@ -226,12 +226,6 @@ SyncWorker(
             KeLowerIrql(DISPATCH_LEVEL);
 
             InterlockedIncrement(&Context->CompletionCount);
-
-            while (Context->CompletionCount < Context->ProcessorCount) {
-                _mm_pause();
-                KeMemoryBarrier();
-            }
-
         }
     }