From: Paul E. McKenney Date: Sun, 13 Jun 2010 21:30:04 +0000 (-0400) Subject: Remove unused sync_core() definitions X-Git-Tag: v0.4.5~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a2c502feb1f1510eef3234168bc16a98404694bf;p=urcu.git Remove unused sync_core() definitions Signed-off-by: Paul E. McKenney Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/arch_generic.h b/urcu/arch_generic.h index e9b1b82..0484618 100644 --- a/urcu/arch_generic.h +++ b/urcu/arch_generic.h @@ -121,10 +121,6 @@ extern "C" { #define cpu_relax() barrier() #endif -#ifndef sync_core -#define sync_core() mb() -#endif - #ifdef __cplusplus } #endif diff --git a/urcu/arch_ppc.h b/urcu/arch_ppc.h index eeeb753..185cb22 100644 --- a/urcu/arch_ppc.h +++ b/urcu/arch_ppc.h @@ -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; \ diff --git a/urcu/arch_x86.h b/urcu/arch_x86.h index 64cc026..e3171a2 100644 --- a/urcu/arch_x86.h +++ b/urcu/arch_x86.h @@ -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; \