]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/mm/slb.c
[POWERPC] Remove barriers from the SLB shadow buffer update
[linux-2.6-omap-h63xx.git] / arch / powerpc / mm / slb.c
index ff1811ac6c81e837be9c7c5072a364bb32d5d877..4bee1cfa9dea553b49a50f513fb8f768fdf61640 100644 (file)
@@ -59,14 +59,12 @@ static inline void slb_shadow_update(unsigned long ea,
 {
        /*
         * Clear the ESID first so the entry is not valid while we are
-        * updating it.
+        * updating it.  No write barriers are needed here, provided
+        * we only update the current CPU's SLB shadow buffer.
         */
        get_slb_shadow()->save_area[entry].esid = 0;
-       smp_wmb();
        get_slb_shadow()->save_area[entry].vsid = mk_vsid_data(ea, flags);
-       smp_wmb();
        get_slb_shadow()->save_area[entry].esid = mk_esid_data(ea, entry);
-       smp_wmb();
 }
 
 static inline void slb_shadow_clear(unsigned long entry)