Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227327
b: refs/heads/master
c: f115714
h: refs/heads/master
i:
  227325: d3d4b4e
  227323: 80bf634
  227319: 35b6b1e
  227311: 0f18d8d
  227295: 31481fd
  227263: abd7d79
  227199: c5d96f2
  227071: dc3b82e
  226815: 3318783
  226303: ef7f6b3
  225279: 0c33c89
v: v3
  • Loading branch information
Yinghai Lu authored and Thomas Gleixner committed Dec 9, 2010
1 parent 60a54f7 commit 7b51ff9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 31 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0104d38a740b25662c592c71f6907676510289c
refs/heads/master: f1157141636848f52c5f74040bed0ba355cf59b7
1 change: 0 additions & 1 deletion trunk/arch/x86/include/asm/apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ extern int apic_force_enable(void);
* On 32bit this is mach-xxx local
*/
#ifdef CONFIG_X86_64
extern void early_init_lapic_mapping(void);
extern int apic_is_clustered_box(void);
#else
static inline int apic_is_clustered_box(void)
Expand Down
24 changes: 2 additions & 22 deletions trunk/arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,28 +1630,6 @@ static int __init detect_init_APIC(void)
}
#endif

#ifdef CONFIG_X86_64
void __init early_init_lapic_mapping(void)
{
/*
* If no local APIC can be found then go out
* : it means there is no mpatable and MADT
*/
if (!smp_found_config)
return;

set_fixmap_nocache(FIX_APIC_BASE, mp_lapic_addr);
apic_printk(APIC_VERBOSE, "mapped APIC to %16lx (%16lx)\n",
APIC_BASE, mp_lapic_addr);

/*
* Fetch the APIC ID of the BSP in case we have a
* default configuration (or the MP table is broken).
*/
boot_cpu_physical_apicid = read_apic_id();
}
#endif

/**
* init_apic_mappings - initialize APIC mappings
*/
Expand Down Expand Up @@ -1707,6 +1685,8 @@ void __init register_lapic_address(unsigned long address)
mp_lapic_addr = address;

set_fixmap_nocache(FIX_APIC_BASE, address);
apic_printk(APIC_VERBOSE, "mapped APIC to %16lx (%16lx)\n",
APIC_BASE, mp_lapic_addr);
if (boot_cpu_physical_apicid == -1U) {
boot_cpu_physical_apicid = read_apic_id();
apic_version[boot_cpu_physical_apicid] =
Expand Down
8 changes: 2 additions & 6 deletions trunk/arch/x86/kernel/mpparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,17 +289,13 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early)
#ifdef CONFIG_X86_32
generic_mps_oem_check(mpc, oem, str);
#endif
/* save the local APIC address, it might be non-default */
/* Initialize the lapic mapping */
if (!acpi_lapic)
mp_lapic_addr = mpc->lapic;
register_lapic_address(mpc->lapic);

if (early)
return 1;

/* Initialize the lapic mapping */
if (!acpi_lapic)
register_lapic_address(mpc->lapic);

if (mpc->oemptr)
x86_init.mpparse.smp_read_mpc_oem(mpc);

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/mm/amdtopology_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ static __init void early_get_boot_cpu_id(void)
if (smp_found_config)
early_get_smp_config();
#endif
early_init_lapic_mapping();
}

int __init amd_get_nodes(struct bootnode *physnodes)
Expand Down

0 comments on commit 7b51ff9

Please sign in to comment.