]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Move 'Request' from SYNC_PROCESSOR to SYNC_CONTEXT
authorPaul Durrant <pdurrant@amazon.com>
Thu, 5 May 2022 17:19:17 +0000 (18:19 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 6 May 2022 12:45:20 +0000 (13:45 +0100)
commit43a51f396e82e0480edeb74017bb26615af04321
tree1db9ee16cd1da71a03e1268184d34d0864be309f
parent679e48c71f1c185e03c37014a037cd206d330eb0
Move 'Request' from SYNC_PROCESSOR to SYNC_CONTEXT

By keeping a local 'Request' value on stack in SyncWorker() to track the last
completed request, we can avoid the need to initiate operations using a per-
processor value and simply use a global one. This means we no longer need
the loops iterating over all SYNC_PROCESSORs in SyncDisableInterrupts(),
SyncEnableInterrupts() and SyncRelease().

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