Skip to content

Commit

Permalink
x86: merge includes in smp.h
Browse files Browse the repository at this point in the history
move all include directives from smp_{32,64}.h to smp.h.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent c1fa6c9 commit b23dab0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 29 deletions.
13 changes: 13 additions & 0 deletions include/asm-x86/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
#include <linux/init.h>
#include <asm/percpu.h>

/*
* We need the APIC definitions automatically as part of 'smp.h'
*/
#ifdef CONFIG_X86_LOCAL_APIC
# include <asm/mpspec.h>
# include <asm/apic.h>
# ifdef CONFIG_X86_IO_APIC
# include <asm/io_apic.h>
# endif
#endif
#include <asm/pda.h>
#include <asm/thread_info.h>

extern cpumask_t cpu_callout_map;

extern int smp_num_siblings;
Expand Down
13 changes: 0 additions & 13 deletions include/asm-x86/smp_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@
#define __ASM_SMP_H

#ifndef __ASSEMBLY__
#include <linux/cpumask.h>
#include <linux/init.h>

/*
* We need the APIC definitions automatically as part of 'smp.h'
*/
#ifdef CONFIG_X86_LOCAL_APIC
# include <asm/mpspec.h>
# include <asm/apic.h>
# ifdef CONFIG_X86_IO_APIC
# include <asm/io_apic.h>
# endif
#endif

extern cpumask_t cpu_callin_map;

Expand Down
16 changes: 0 additions & 16 deletions include/asm-x86/smp_64.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
#ifndef __ASM_SMP_H
#define __ASM_SMP_H

#include <linux/cpumask.h>
#include <linux/init.h>

/*
* We need the APIC definitions automatically as part of 'smp.h'
*/
#ifdef CONFIG_X86_LOCAL_APIC
# include <asm/mpspec.h>
# include <asm/apic.h>
# ifdef CONFIG_X86_IO_APIC
# include <asm/io_apic.h>
# endif
#endif
#include <asm/pda.h>
#include <asm/thread_info.h>

extern cpumask_t cpu_initialized;
extern cpumask_t cpu_callin_map;

Expand Down

0 comments on commit b23dab0

Please sign in to comment.