diff mbox

remove unused barrier.h

Message ID 1397217079-11099-1-git-send-email-riku.voipio@linaro.org
State Accepted
Headers show

Commit Message

Riku Voipio April 11, 2014, 11:51 a.m. UTC
From: Riku Voipio <riku.voipio@linaro.org>

While looking for things that needs porting for Aarch64,
barrier.h from blktrace was identified. However, a deeper
look shows that this file is not actually used anymore
in blktrace.

Remove unused file to avoid future confusion.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 barrier.h | 33 ---------------------------------
 1 file changed, 33 deletions(-)
 delete mode 100644 barrier.h

Comments

Jens Axboe April 11, 2014, 1:46 p.m. UTC | #1
On 04/11/2014 05:51 AM, riku.voipio@linaro.org wrote:
> From: Riku Voipio <riku.voipio@linaro.org>
>
> While looking for things that needs porting for Aarch64,
> barrier.h from blktrace was identified. However, a deeper
> look shows that this file is not actually used anymore
> in blktrace.
>
> Remove unused file to avoid future confusion.

Thanks, applied.
diff mbox

Patch

diff --git a/barrier.h b/barrier.h
deleted file mode 100644
index 14d06b5..0000000
--- a/barrier.h
+++ /dev/null
@@ -1,33 +0,0 @@ 
-#ifndef BARRIER_H
-#define BARRIER_H
-
-#if defined(__ia64__)
-  #define store_barrier()         asm volatile ("mf" ::: "memory")
-#elif defined(__x86_64__)
-  #define store_barrier()         asm volatile("sfence" ::: "memory")
-#elif defined(__i386__)
-  #define store_barrier()         asm volatile ("": : :"memory")
-#elif defined(__ppc__) || defined(__powerpc__)
-  #define store_barrier()         asm volatile ("eieio" : : : "memory")
-#elif defined(__s390__) || defined(__s390x__)
-  #define store_barrier()         asm volatile ("bcr 15,0" : : : "memory")
-#elif defined(__alpha__)
-  #define store_barrier()         asm volatile("wmb": : :"memory")
-#elif defined(__hppa__)
-  #define store_barrier()         asm volatile("":::"memory")
-#elif defined(__sparc__)
-  #define store_barrier()         asm volatile("":::"memory")
-#elif defined(__m68000__) || defined(__m68k__) || defined(mc68000) || defined(_M_M68K)
-  #define store_barrier()         asm volatile("":::"memory")
-#elif defined(__mips__)  /* also mipsel */
-  #define store_barrier()         do { } while(0)
-#elif defined(__arm__)
-  /* taken from linux/arch/arm/kernel/entry-armv.S, thanks to pbrook! */
-  typedef void (__kernel_dmb_t)(void);
-  #define __kernel_dmb (*(__kernel_dmb_t *)0xffff0fa0)
-  #define store_barrier()        __kernel_dmb()
-#else
-  #error Define store_barrier() for your CPU
-#endif
-
-#endif