[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] x86/mcheck: Drop unnecessary barriers



commit d72f5abff765b6408ef940ced437d000643f7547
Author:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Fri Dec 2 15:00:41 2016 +0000
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Thu Dec 21 10:57:16 2017 +0000

    x86/mcheck: Drop unnecessary barriers
    
    spin_unlock() has full barrier semantics already.
    
    Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/arch/x86/cpu/mcheck/mctelem.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/xen/arch/x86/cpu/mcheck/mctelem.c 
b/xen/arch/x86/cpu/mcheck/mctelem.c
index 492e2af..35431df 100644
--- a/xen/arch/x86/cpu/mcheck/mctelem.c
+++ b/xen/arch/x86/cpu/mcheck/mctelem.c
@@ -520,7 +520,6 @@ mctelem_cookie_t 
mctelem_consume_oldest_begin(mctelem_class_t which)
        }
 
        mctelem_processing_hold(tep);
-       wmb();
        spin_unlock(&processing_lock);
        return MCTE2COOKIE(tep);
 }
@@ -531,7 +530,6 @@ void mctelem_consume_oldest_end(mctelem_cookie_t cookie)
 
        spin_lock(&processing_lock);
        mctelem_processing_release(tep);
-       wmb();
        spin_unlock(&processing_lock);
 }
 
@@ -547,7 +545,6 @@ void mctelem_ack(mctelem_class_t which, mctelem_cookie_t 
cookie)
        spin_lock(&processing_lock);
        if (tep == mctctl.mctc_processing_head[target])
                mctelem_processing_release(tep);
-       wmb();
        spin_unlock(&processing_lock);
 }
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.