<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:Consolas;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:Consolas;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText"><span style="font-family:"Courier New"">Revision: 3608<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">Author: stan.smith@intel.com<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">Date: Thursday, April 25, 2013 3:32:31 PM<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">Message:<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">[INC] removed duplicated code which is present in the Microsoft implementation of KeAcquireSpinLock() & KeReleaseSpinLock().<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">Reviewed by Microsoft.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">signed-off-by: stan smith <stan.smith@intel.com><o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">----<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">Modified : /gen1/trunk/inc/kernel/complib/cl_spinlock_osd.h<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">--- C:/Users/scsmith/AppData/Local/Temp/cl_spinlock_osd.h-revBASE.svn002.tmp.h Wed May 16 14:38:16 2012<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">+++ C:/Users/scsmith/Documents/openIB-windows/ofw/gen1/trunk/inc/kernel/complib/cl_spinlock_osd.h Thu Apr 11 08:43:59 2013<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">@@ -91,15 +91,8 @@<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">cl_spinlock_acquire(
<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New""> IN cl_spinlock_t* const p_spinlock )<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">{<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- KIRQL irql = KeGetCurrentIrql();<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New""> CL_ASSERT( p_spinlock );<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">-<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- if (irql == DISPATCH_LEVEL) {<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- KeAcquireSpinLockAtDpcLevel( &p_spinlock->lock );<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- p_spinlock->irql = irql;<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- }<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- else<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- KeAcquireSpinLock( &p_spinlock->lock, &p_spinlock->irql );<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">+ KeAcquireSpinLock( &p_spinlock->lock, &p_spinlock->irql );<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">}<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New""> #ifdef NTDDI_WIN8<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">@@ -114,10 +107,7 @@<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">{<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New""> CL_ASSERT( p_spinlock );<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- if (p_spinlock->irql == DISPATCH_LEVEL)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- KeReleaseSpinLockFromDpcLevel( &p_spinlock->lock );<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- else<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">- KeReleaseSpinLock( &p_spinlock->lock, p_spinlock->irql );<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">+ KeReleaseSpinLock( &p_spinlock->lock, p_spinlock->irql );<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New"">}<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Courier New""> <o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>