Skip to content

Commit

Permalink
x86: clean up ARCH_SETUP
Browse files Browse the repository at this point in the history
asm-x86/paravirt.h already have protection with CONFIG_PARAVIRT inside

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 8, 2008
1 parent 611dfd7 commit 042623b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
8 changes: 4 additions & 4 deletions arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,7 @@
#include <asm/proto.h>

#include <mach_apic.h>
#ifdef CONFIG_PARAVIRT
#include <asm/paravirt.h>
#else
#define ARCH_SETUP
#endif

#include <asm/percpu.h>
#include <asm/sections.h>
Expand All @@ -115,6 +111,10 @@
#include <asm/numa_64.h>
#endif

#ifndef ARCH_SETUP
#define ARCH_SETUP
#endif

#ifndef CONFIG_DEBUG_BOOT_PARAMS
struct boot_params __initdata boot_params;
#else
Expand Down
4 changes: 0 additions & 4 deletions include/asm-x86/mach-default/setup_arch.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* Hook to call BIOS initialisation function */

/* no action for generic */

#ifndef ARCH_SETUP
#define ARCH_SETUP
#endif
2 changes: 0 additions & 2 deletions include/asm-x86/mach-visws/setup_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ extern unsigned long sgivwfb_mem_phys;
extern unsigned long sgivwfb_mem_size;

/* no action for visws */

#define ARCH_SETUP

0 comments on commit 042623b

Please sign in to comment.