Files
openflow/datapath/linux-2.4/compat-2.4/include-i386/asm/atomic.h
T
2008-03-04 13:12:53 -08:00

11 lines
230 B
C

#ifndef __ASM_I386_ATOMIC_WRAPPER_H
#define __ASM_I386_ATOMIC_WRAPPER_H 1
#include_next <asm/atomic.h>
#include <asm/system.h>
#define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
#endif /* atomic.h */