@@ -144,7 +144,7 @@ void __init smp_callin(void)
144144 current -> active_mm = & init_mm ;
145145
146146 while (!cpu_isset (cpuid , smp_commenced_mask ))
147- membar ( "#LoadLoad" );
147+ rmb ( );
148148
149149 cpu_set (cpuid , cpu_online_map );
150150}
@@ -184,11 +184,11 @@ static inline long get_delta (long *rt, long *master)
184184 for (i = 0 ; i < NUM_ITERS ; i ++ ) {
185185 t0 = tick_ops -> get_tick ();
186186 go [MASTER ] = 1 ;
187- membar ( "#StoreLoad" );
187+ membar_storeload ( );
188188 while (!(tm = go [SLAVE ]))
189- membar ( "#LoadLoad" );
189+ rmb ( );
190190 go [SLAVE ] = 0 ;
191- membar ( "#StoreStore" );
191+ wmb ( );
192192 t1 = tick_ops -> get_tick ();
193193
194194 if (t1 - t0 < best_t1 - best_t0 )
@@ -221,7 +221,7 @@ void smp_synchronize_tick_client(void)
221221 go [MASTER ] = 1 ;
222222
223223 while (go [MASTER ])
224- membar ( "#LoadLoad" );
224+ rmb ( );
225225
226226 local_irq_save (flags );
227227 {
@@ -273,21 +273,21 @@ static void smp_synchronize_one_tick(int cpu)
273273
274274 /* wait for client to be ready */
275275 while (!go [MASTER ])
276- membar ( "#LoadLoad" );
276+ rmb ( );
277277
278278 /* now let the client proceed into his loop */
279279 go [MASTER ] = 0 ;
280- membar ( "#StoreLoad" );
280+ membar_storeload ( );
281281
282282 spin_lock_irqsave (& itc_sync_lock , flags );
283283 {
284284 for (i = 0 ; i < NUM_ROUNDS * NUM_ITERS ; i ++ ) {
285285 while (!go [MASTER ])
286- membar ( "#LoadLoad" );
286+ rmb ( );
287287 go [MASTER ] = 0 ;
288- membar ( "#StoreStore" );
288+ wmb ( );
289289 go [SLAVE ] = tick_ops -> get_tick ();
290- membar ( "#StoreLoad" );
290+ membar_storeload ( );
291291 }
292292 }
293293 spin_unlock_irqrestore (& itc_sync_lock , flags );
@@ -927,11 +927,11 @@ void smp_capture(void)
927927 smp_processor_id ());
928928#endif
929929 penguins_are_doing_time = 1 ;
930- membar ( "#StoreStore | #LoadStore" );
930+ membar_storestore_loadstore ( );
931931 atomic_inc (& smp_capture_registry );
932932 smp_cross_call (& xcall_capture , 0 , 0 , 0 );
933933 while (atomic_read (& smp_capture_registry ) != ncpus )
934- membar ( "#LoadLoad" );
934+ rmb ( );
935935#ifdef CAPTURE_DEBUG
936936 printk ("done\n" );
937937#endif
@@ -947,7 +947,7 @@ void smp_release(void)
947947 smp_processor_id ());
948948#endif
949949 penguins_are_doing_time = 0 ;
950- membar ( "#StoreStore | #StoreLoad" );
950+ membar_storeload_storestore ( );
951951 atomic_dec (& smp_capture_registry );
952952 }
953953}
@@ -970,9 +970,9 @@ void smp_penguin_jailcell(int irq, struct pt_regs *regs)
970970 save_alternate_globals (global_save );
971971 prom_world (1 );
972972 atomic_inc (& smp_capture_registry );
973- membar ( "#StoreLoad | #StoreStore" );
973+ membar_storeload_storestore ( );
974974 while (penguins_are_doing_time )
975- membar ( "#LoadLoad" );
975+ rmb ( );
976976 restore_alternate_globals (global_save );
977977 atomic_dec (& smp_capture_registry );
978978 prom_world (0 );
0 commit comments