Skip to content

Commit

Permalink
x86: move mce related declarations
Browse files Browse the repository at this point in the history
Move the mce related declarations where they belong, fix the
users and remove 32bit dependency in mce.h

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Jan 30, 2008
1 parent 718fc13 commit af7a78e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions arch/x86/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
#include <asm/sections.h>
#include <asm/dmi.h>
#include <asm/cacheflush.h>
#include <asm/mce.h>

/*
* Machine setup..
Expand Down
14 changes: 7 additions & 7 deletions include/asm-x86/mce.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,7 @@ struct mce_log {
#ifdef __KERNEL__

#ifdef CONFIG_X86_32
#ifdef CONFIG_X86_MCE
extern void mcheck_init(struct cpuinfo_x86 *c);
#else
#define mcheck_init(c) do {} while(0)
#endif

extern int mce_disabled;

#else /* CONFIG_X86_32 */

#include <asm/atomic.h>
Expand Down Expand Up @@ -121,6 +114,13 @@ extern int mce_notify_user(void);

#endif /* !CONFIG_X86_32 */



#ifdef CONFIG_X86_MCE
extern void mcheck_init(struct cpuinfo_x86 *c);
#else
#define mcheck_init(c) do { } while (0)
#endif
extern void stop_mce(void);
extern void restart_mce(void);

Expand Down
1 change: 0 additions & 1 deletion include/asm-x86/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ extern void pda_init(int);

extern void early_idt_handler(void);

extern void mcheck_init(struct cpuinfo_x86 *c);
extern void init_memory_mapping(unsigned long start, unsigned long end);

extern void system_call(void);
Expand Down

0 comments on commit af7a78e

Please sign in to comment.