]> err.no Git - linux-2.6/commitdiff
x86: threadinfo: common include files
authorChristoph Lameter <clameter@sgi.com>
Tue, 29 Apr 2008 01:52:33 +0000 (18:52 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 12 May 2008 19:28:02 +0000 (21:28 +0200)
Move shared includes to a common area in thread_info.h

Adds asm/types.h for x86_64 and linux/compiler.h for x86_32. Not needed but
we can avoid some ifdeffing and it simplifies later joining.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/thread_info.h

index d59384ac0ba6fe184b321745fde777ccf13bea4d..d2dc1a3b5d659621c5b43488c147d3a9e85d4ab2 100644 (file)
@@ -7,9 +7,11 @@
 #ifndef _ASM_X86_THREAD_INFO_H
 #define _ASM_X86_THREAD_INFO_H
 
-#ifdef CONFIG_X86_32
 #include <linux/compiler.h>
 #include <asm/page.h>
+#include <asm/types.h>
+
+#ifdef CONFIG_X86_32
 
 #ifndef __ASSEMBLY__
 #include <asm/processor.h>
@@ -192,8 +194,6 @@ static inline struct thread_info *current_thread_info(void)
 
 #else /* X86_32 */
 
-#include <asm/page.h>
-#include <asm/types.h>
 #include <asm/pda.h>
 
 /*