]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Reduce code duplication
authorPaul Durrant <pdurrant@amazon.com>
Thu, 5 May 2022 14:56:21 +0000 (15:56 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 6 May 2022 12:38:53 +0000 (13:38 +0100)
commite16a81f352e472eb52f74f0b04b9d7d80a939ab4
tree27f4e8714325176751f7de9f1f706e04198f20dd
parenta532e2ecb5f3c85c359c513973ea8b4df156c0d4
Reduce code duplication

Introduce helper functions for disabling/enabling interrupts and waiting for
completion. The functions are then used in place of the current open-coding of
these operations.

NOTE: To avoid compiler/prefast noise, some warnings are disabled. The static
      analysis can't cope with the IRQL manipulation.

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