Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89083
b: refs/heads/master
c: 08bef9d
h: refs/heads/master
i:
  89081: 7e99b12
  89079: cec7d64
v: v3
  • Loading branch information
Alexey Starikovskiy authored and Ingo Molnar committed Apr 17, 2008
1 parent 88d8dc9 commit 12f78b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 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: c853c67690448415af2d204062028d1456f524de
refs/heads/master: 08bef9d337f26747b9520278872d20f15983fcda
21 changes: 2 additions & 19 deletions trunk/arch/x86/kernel/mpparse_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ static void __cpuinit generic_processor_info(int apicid, int version)
int cpu;
cpumask_t tmp_map;
physid_mask_t phys_cpu;


/*
* Validate version
Expand Down Expand Up @@ -893,34 +892,18 @@ void __init mp_register_lapic_address(u64 address)

void __cpuinit mp_register_lapic (u8 id, u8 enabled)
{
struct mpc_config_processor processor;
int boot_cpu = 0;

if (MAX_APICS - id <= 0) {
printk(KERN_WARNING "Processor #%d invalid (max %d)\n",
id, MAX_APICS);
return;
}

if (!enabled) {
++disabled_cpus;
return;
}

if (id == boot_cpu_physical_apicid)
boot_cpu = 1;

processor.mpc_type = MP_PROCESSOR;
processor.mpc_apicid = id;
processor.mpc_apicver = GET_APIC_VERSION(apic_read(APIC_LVR));
processor.mpc_cpuflag = (enabled ? CPU_ENABLED : 0);
processor.mpc_cpuflag |= (boot_cpu ? CPU_BOOTPROCESSOR : 0);
processor.mpc_cpufeature = (boot_cpu_data.x86 << 8) |
(boot_cpu_data.x86_model << 4) | boot_cpu_data.x86_mask;
processor.mpc_featureflag = boot_cpu_data.x86_capability[0];
processor.mpc_reserved[0] = 0;
processor.mpc_reserved[1] = 0;

MP_processor_info(&processor);
generic_processor_info(id, GET_APIC_VERSION(apic_read(APIC_LVR)));
}

#ifdef CONFIG_X86_IO_APIC
Expand Down

0 comments on commit 12f78b4

Please sign in to comment.