Skip to content

Commit

Permalink
x86: move phys_cpu_present_map to setup.c
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Alexey Starikovskiy authored and Ingo Molnar committed Apr 17, 2008
1 parent 76eb413 commit 0fc0906
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
5 changes: 0 additions & 5 deletions arch/x86/kernel/mpparse_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ unsigned int boot_cpu_physical_apicid = -1U;
#endif
#endif

/* Make it easy to share the UP and SMP code: */
#ifndef CONFIG_X86_SMP
physid_mask_t phys_cpu_present_map;
#endif

/*
* Intel MP BIOS table parsing routines:
*/
Expand Down
5 changes: 0 additions & 5 deletions arch/x86/kernel/mpparse_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ unsigned int boot_cpu_physical_apicid = -1U;
#endif
#endif

/* Make it easy to share the UP and SMP code: */
#ifndef CONFIG_X86_SMP
physid_mask_t phys_cpu_present_map;
#endif

/*
* Intel MP BIOS table parsing routines:
*/
Expand Down
4 changes: 4 additions & 0 deletions arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
#include <asm/processor.h>
#include <asm/setup.h>
#include <asm/topology.h>
#include <asm/mpspec.h>
#include <asm/apicdef.h>

DEFINE_PER_CPU(u16, x86_cpu_to_apicid) = BAD_APICID;
EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid);

/* Bitmask of physically existing CPUs */
physid_mask_t phys_cpu_present_map;

#if defined(CONFIG_HAVE_SETUP_PER_CPU_AREA) && defined(CONFIG_SMP)
/*
* Copy data used in early init routines from the initial arrays to the
Expand Down
3 changes: 0 additions & 3 deletions arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ u8 apicid_2_node[MAX_APICID];
/* Internal processor count */
unsigned int num_processors;

/* Bitmask of physically existing CPUs */
physid_mask_t phys_cpu_present_map;

/* State of each CPU */
DEFINE_PER_CPU(int, cpu_state) = { 0 };

Expand Down

0 comments on commit 0fc0906

Please sign in to comment.