Remove unused sync_core() definitions
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 13 Jun 2010 21:30:04 +0000 (17:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 13 Jun 2010 21:30:04 +0000 (17:30 -0400)
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/arch_generic.h
urcu/arch_ppc.h
urcu/arch_x86.h

index e9b1b822fbe1f39df74f9702039ce3c8f96ea09a..0484618b6120a6e0133550c879bd92746455443d 100644 (file)
@@ -121,10 +121,6 @@ extern "C" {
 #define cpu_relax()     barrier()
 #endif
 
-#ifndef sync_core
-#define sync_core()     mb()
-#endif
-
 #ifdef __cplusplus
 }
 #endif
index eeeb753936d6c0f036305905829513aecc11843b..185cb22f3f1fff025fc48447a2653f6f47703866 100644 (file)
@@ -34,11 +34,6 @@ extern "C" {
 
 #define mb()    asm volatile("sync":::"memory")
 
-/*
- * Serialize core instruction execution. Also acts as a compiler barrier.
- */
-#define sync_core()    asm volatile("isync" : : : "memory")
-
 #define mftbl()                                                \
        ({                                              \
                unsigned long rval;                     \
index 64cc026f9cd46343cb977dc7b076bf9a7d70a317..e3171a24fa608d044de77ad8633e67e4adbbc69f 100644 (file)
@@ -47,20 +47,6 @@ extern "C" {
 
 #define cpu_relax()    asm volatile("rep; nop" : : : "memory");
 
-/*
- * Serialize core instruction execution. Also acts as a compiler barrier.
- * On PIC ebx cannot be clobbered
- */
-#ifdef __PIC__
-#define sync_core()                                                      \
-       asm volatile("push %%ebx; cpuid; pop %%ebx"                       \
-                    : : : "memory", "eax", "ecx", "edx");
-#endif
-#ifndef __PIC__
-#define sync_core()                                                      \
-       asm volatile("cpuid" : : : "memory", "eax", "ebx", "ecx", "edx");
-#endif
-
 #define rdtscll(val)                                                     \
        do {                                                              \
             unsigned int __a, __d;                                       \
This page took 0.026349 seconds and 4 git commands to generate.