Skip to content

Commit

Permalink
[PATCH] i386/x86-64: Move acpi_disabled variables into acpi/boot.c
Browse files Browse the repository at this point in the history
Removes code duplication between i386/x86-64.

Not needed anymore in setup.c since early_param cleanup

Cc: len.brown@intel.com
Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Sep 26, 2006
1 parent 43c85c9 commit df3bb57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
7 changes: 7 additions & 0 deletions arch/i386/kernel/acpi/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@

int __initdata acpi_force = 0;

#ifdef CONFIG_ACPI
int acpi_disabled = 0;
#else
int acpi_disabled = 1;
#endif
EXPORT_SYMBOL(acpi_disabled);

#ifdef CONFIG_X86_64

extern void __init clustered_apic_check(void);
Expand Down
7 changes: 0 additions & 7 deletions arch/i386/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@ EXPORT_SYMBOL(boot_cpu_data);

unsigned long mmu_cr4_features;

#ifdef CONFIG_ACPI
int acpi_disabled = 0;
#else
int acpi_disabled = 1;
#endif
EXPORT_SYMBOL(acpi_disabled);

/* for MCA, but anyone else can use it if they want */
unsigned int machine_id;
#ifdef CONFIG_MCA
Expand Down
3 changes: 0 additions & 3 deletions arch/x86_64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ EXPORT_SYMBOL(boot_cpu_data);

unsigned long mmu_cr4_features;

int acpi_disabled;
EXPORT_SYMBOL(acpi_disabled);

int acpi_numa __initdata;

/* Boot loader ID as an integer, for the benefit of proc_dointvec */
Expand Down

0 comments on commit df3bb57

Please sign in to comment.