From: Paul Durrant Date: Thu, 5 May 2022 13:57:41 +0000 (+0100) Subject: Remove unnecessary wait when enabling interrupts X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a532e2ecb5f3c85c359c513973ea8b4df156c0d4;p=pvdrivers%2Fwin%2Fxenbus.git Remove unnecessary wait when enabling interrupts There is no need for DPCs to wait: Only the main thread needs to do so. Signed-off-by: Paul Durrant --- diff --git a/src/xenbus/sync.c b/src/xenbus/sync.c index c2ef681..e3b55d1 100644 --- a/src/xenbus/sync.c +++ b/src/xenbus/sync.c @@ -226,12 +226,6 @@ SyncWorker( KeLowerIrql(DISPATCH_LEVEL); InterlockedIncrement(&Context->CompletionCount); - - while (Context->CompletionCount < Context->ProcessorCount) { - _mm_pause(); - KeMemoryBarrier(); - } - } }