[xtensa-cvscommit] linux/include/asm-xtensa atomic.h,1.1.1.1,1.2
Brought to you by:
zankel
|
From: <jgr...@us...> - 2002-10-25 19:33:17
|
Update of /cvsroot/xtensa/linux/include/asm-xtensa
In directory usw-pr-cvs1:/tmp/cvs-serv32454/include/asm-xtensa
Modified Files:
atomic.h
Log Message:
Clean up includes that cause problems with user applications.
Index: atomic.h
===================================================================
RCS file: /cvsroot/xtensa/linux/include/asm-xtensa/atomic.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** atomic.h 28 Aug 2002 16:11:31 -0000 1.1.1.1
--- atomic.h 25 Oct 2002 19:33:13 -0000 1.2
***************
*** 34,42 ****
#include <linux/config.h>
- #include <asm/xtutil.h>
typedef struct { volatile int counter; } atomic_t;
#ifdef __KERNEL__
#define ATOMIC_INIT(i) ( (atomic_t) { (i) } )
--- 34,43 ----
#include <linux/config.h>
typedef struct { volatile int counter; } atomic_t;
#ifdef __KERNEL__
+ #include <asm/xtutil.h>
+ #include <asm/system.h>
#define ATOMIC_INIT(i) ( (atomic_t) { (i) } )
***************
*** 45,50 ****
#define atomic_set(v,i) ((v)->counter = (i))
- #include <asm/system.h>
- #include <xtensa/config/specreg.h>
/*
--- 46,49 ----
***************
*** 53,59 ****
* branch back to restart the operation.
*/
-
- #define _XTSTR(x) # x
- #define XTSTR(x) _XTSTR(x)
extern __inline__ void atomic_add(int i, atomic_t * v)
--- 52,55 ----
|