[ofw] [PATCH] inc\kernel\complib\cl_spinlock_osd.h
Smith, Stan
stan.smith at intel.com
Thu Apr 25 15:25:37 PDT 2013
Revision: 3608
Author: stan.smith at intel.com
Date: Thursday, April 25, 2013 3:32:31 PM
Message:
[INC] removed duplicated code which is present in the Microsoft implementation of KeAcquireSpinLock() & KeReleaseSpinLock().
Reviewed by Microsoft.
signed-off-by: stan smith <stan.smith at intel.com>
----
Modified : /gen1/trunk/inc/kernel/complib/cl_spinlock_osd.h
--- C:/Users/scsmith/AppData/Local/Temp/cl_spinlock_osd.h-revBASE.svn002.tmp.h Wed May 16 14:38:16 2012
+++ C:/Users/scsmith/Documents/openIB-windows/ofw/gen1/trunk/inc/kernel/complib/cl_spinlock_osd.h Thu Apr 11 08:43:59 2013
@@ -91,15 +91,8 @@
cl_spinlock_acquire(
IN cl_spinlock_t* const p_spinlock )
{
- KIRQL irql = KeGetCurrentIrql();
CL_ASSERT( p_spinlock );
-
- if (irql == DISPATCH_LEVEL) {
- KeAcquireSpinLockAtDpcLevel( &p_spinlock->lock );
- p_spinlock->irql = irql;
- }
- else
- KeAcquireSpinLock( &p_spinlock->lock, &p_spinlock->irql );
+ KeAcquireSpinLock( &p_spinlock->lock, &p_spinlock->irql );
}
#ifdef NTDDI_WIN8
@@ -114,10 +107,7 @@
{
CL_ASSERT( p_spinlock );
- if (p_spinlock->irql == DISPATCH_LEVEL)
- KeReleaseSpinLockFromDpcLevel( &p_spinlock->lock );
- else
- KeReleaseSpinLock( &p_spinlock->lock, p_spinlock->irql );
+ KeReleaseSpinLock( &p_spinlock->lock, p_spinlock->irql );
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20130425/ac6e87ce/attachment.html>
More information about the ofw
mailing list