[patch 2/9] x86: threadinfo: Common include files

From: Christoph Lameter
Date: Mon Apr 28 2008 - 21:54:24 EST


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@xxxxxxx>

---
include/asm-x86/thread_info.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6/include/asm-x86/thread_info.h
===================================================================
--- linux-2.6.orig/include/asm-x86/thread_info.h 2008-04-28 17:18:24.182686168 -0700
+++ linux-2.6/include/asm-x86/thread_info.h 2008-04-28 17:19:43.520434319 -0700
@@ -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 *curren

#else /* X86_32 */

-#include <asm/page.h>
-#include <asm/types.h>
#include <asm/pda.h>

/*

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/