]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Remove unnecessary helper function
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 16 Jan 2015 15:00:45 +0000 (15:00 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 27 Jan 2015 16:12:53 +0000 (16:12 +0000)
The __EvtchnAcquire/ReleaseInterruptLock functions are only used in one
place. Remove them and call the underlying Fdo functions directly.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenbus/evtchn.c

index b3f147c13df590b9cadf5ad1b7ff58b519b880b1..f5f7c67ace5eba835466e757eafbb4af73044d11 100644 (file)
@@ -198,31 +198,6 @@ EvtchnInterruptDisable(
     Trace("<====\n");
 }
 
-static FORCEINLINE
-_IRQL_requires_max_(HIGH_LEVEL)
-_IRQL_saves_
-_IRQL_raises_(HIGH_LEVEL)
-KIRQL
-__EvtchnAcquireInterruptLock(
-    IN  PXENBUS_EVTCHN_CONTEXT  Context,
-    IN  PXENBUS_EVTCHN_CHANNEL  Channel
-    )
-{
-    return FdoAcquireInterruptLock(Context->Fdo, Channel->Interrupt);
-}
-
-static FORCEINLINE
-__drv_requiresIRQL(HIGH_LEVEL)
-VOID
-__EvtchnReleaseInterruptLock(
-    IN  PXENBUS_EVTCHN_CONTEXT      Context,
-    IN  PXENBUS_EVTCHN_CHANNEL      Channel,
-    IN  __drv_restoresIRQL KIRQL    Irql
-    )
-{
-    FdoReleaseInterruptLock(Context->Fdo, Channel->Interrupt, Irql);
-}
-
 static NTSTATUS
 EvtchnOpenFixed(
     IN  PXENBUS_EVTCHN_CHANNEL  Channel,
@@ -596,12 +571,12 @@ EvtchnCallback(
     UNREFERENCED_PARAMETER(Dpc);
     UNREFERENCED_PARAMETER(Argument2);
 
-    Irql = __EvtchnAcquireInterruptLock(Context, Channel);
+    Irql = FdoAcquireInterruptLock(Context->Fdo, Channel->Interrupt);
 
 #pragma warning(suppress:6387)  // NULL argument
     (VOID) Channel->Callback(NULL, Channel->Argument);
 
-    __EvtchnReleaseInterruptLock(Context, Channel, Irql);
+    FdoReleaseInterruptLock(Context->Fdo, Channel->Interrupt, Irql);
 }
 
 static VOID