Removing GPL likely, unlikely, ACCESS_ONCE and barrier
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 13 May 2009 15:09:49 +0000 (11:09 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 13 May 2009 15:09:49 +0000 (11:09 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
compiler.h

index 2507ec88a0a6a6fbb11e84f73843bb042a9d850e..fb09ca2b9b238ceec418ba5c21c660b4cebcb7fd 100644 (file)
  * IBM's contributions to this file may be relicensed under LGPLv2 or later.
  */
 
-/* The "volatile" is due to gcc bugs */
-#define barrier() __asm__ __volatile__("": : :"memory")
-
-#define likely(x)       __builtin_expect(!!(x), 1)
-#define unlikely(x)     __builtin_expect(!!(x), 0)
-
 /*
  * Instruct the compiler to perform only a single access to a variable
  * (prohibits merging and refetching). The compiler is also forbidden to reorder
@@ -43,6 +37,5 @@
  * use is to mediate communication between process-level code and irq/NMI
  * handlers, all running on the same CPU.
  */
-#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
 
 #endif /* _COMPILER_H */
This page took 0.02499 seconds and 4 git commands to generate.