Skip to content

Commit

Permalink
x86: threadinfo: common include files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Lameter authored and Ingo Molnar committed May 12, 2008
1 parent 2052e8d commit 12a638e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/asm-x86/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>

/*
Expand Down

0 comments on commit 12a638e

Please sign in to comment.