compiler.h: take in recent linux updates for newer gcc support
Had to remove from original compiler-gcc: - things that deal with types, e.g. READ_ONCE macro and friends; - #define barrier(). This one would be better there at some point. hfi1: remove ACCESS_ONCE from hfi1 header
This commit is contained in:
committed by
Balazs Gerofi
parent
6959d5ead4
commit
6279f69f5c
@ -80,9 +80,6 @@
|
||||
# define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
#endif
|
||||
|
||||
/* From: kernel-xppsl_1.5.2/include/linux/compiler.h */
|
||||
#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
|
||||
|
||||
/* Atomic ops */
|
||||
#define atomic_inc ihk_atomic_inc
|
||||
#define atomic_dec ihk_atomic_dec
|
||||
|
||||
Reference in New Issue
Block a user