git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- remove last vestiges of CKRM
[linux-2.6.git]
/
include
/
asm-um
/
current.h
diff --git
a/include/asm-um/current.h
b/include/asm-um/current.h
index
adfe568
..
8fd72f6
100644
(file)
--- a/
include/asm-um/current.h
+++ b/
include/asm-um/current.h
@@
-8,16
+8,13
@@
#ifndef __ASSEMBLY__
#ifndef __ASSEMBLY__
-struct thread_info;
-
-#include "linux/config.h"
#include "asm/page.h"
#include "asm/page.h"
+#include "linux/thread_info.h"
-#define CURRENT_THREAD(dummy) (((unsigned long) &dummy) & \
- (PAGE_MASK << CONFIG_KERNEL_STACK_ORDER))
+#define current (current_thread_info()->task)
-#define current ({ int dummy; \
-
((struct thread_info *) CURRENT_THREAD(dummy))->task; }
)
+/*Backward compatibility - it's used inside arch/um.*/
+
#define current_thread current_thread_info(
)
#endif /* __ASSEMBLY__ */
#endif /* __ASSEMBLY__ */