Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108669
b: refs/heads/master
c: 23b49c1
h: refs/heads/master
i:
  108667: 874cce5
v: v3
  • Loading branch information
Max Krasnyansky authored and Ingo Molnar committed Aug 14, 2008
1 parent 8e8c160 commit fe0f4a6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 34 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: 31677619650cac2bcc9f50920824323b005e3d8a
refs/heads/master: 23b49c19f6946cc33392a1fc75dd788dd4a90fb7
8 changes: 0 additions & 8 deletions trunk/arch/x86/kernel/apic_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1454,8 +1454,6 @@ void disconnect_bsp_APIC(int virt_wire_setup)
}
}

unsigned int __cpuinitdata maxcpus = NR_CPUS;

void __cpuinit generic_processor_info(int apicid, int version)
{
int cpu;
Expand All @@ -1482,12 +1480,6 @@ void __cpuinit generic_processor_info(int apicid, int version)
return;
}

if (num_processors >= maxcpus) {
printk(KERN_WARNING "WARNING: maxcpus limit of %i reached."
" Processor ignored.\n", maxcpus);
return;
}

num_processors++;
cpus_complement(tmp_map, cpu_present_map);
cpu = first_cpu(tmp_map);
Expand Down
7 changes: 0 additions & 7 deletions trunk/arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ static unsigned long apic_phys;

unsigned long mp_lapic_addr;

unsigned int __cpuinitdata maxcpus = NR_CPUS;
/*
* Get the LAPIC version
*/
Expand Down Expand Up @@ -1062,12 +1061,6 @@ void __cpuinit generic_processor_info(int apicid, int version)
return;
}

if (num_processors >= maxcpus) {
printk(KERN_WARNING "WARNING: maxcpus limit of %i reached."
" Processor ignored.\n", maxcpus);
return;
}

num_processors++;
cpus_complement(tmp_map, cpu_present_map);
cpu = first_cpu(tmp_map);
Expand Down
14 changes: 0 additions & 14 deletions trunk/arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1386,17 +1386,3 @@ void __cpu_die(unsigned int cpu)
BUG();
}
#endif

/*
* If the BIOS enumerates physical processors before logical,
* maxcpus=N at enumeration-time can be used to disable HT.
*/
static int __init parse_maxcpus(char *arg)
{
extern unsigned int maxcpus;

if (arg)
maxcpus = simple_strtoul(arg, NULL, 0);
return 0;
}
early_param("maxcpus", parse_maxcpus);
6 changes: 2 additions & 4 deletions trunk/arch/x86/kernel/visws_quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ static int __init visws_get_smp_config(unsigned int early)
return 1;
}

extern unsigned int __cpuinitdata maxcpus;

/*
* The Visual Workstation is Intel MP compliant in the hardware
* sense, but it doesn't have a BIOS(-configuration table).
Expand Down Expand Up @@ -244,8 +242,8 @@ static int __init visws_find_smp_config(unsigned int reserve)
ncpus = CO_CPU_MAX;
}

if (ncpus > maxcpus)
ncpus = maxcpus;
if (ncpus > setup_max_cpus)
ncpus = setup_max_cpus;

#ifdef CONFIG_X86_LOCAL_APIC
smp_found_config = 1;
Expand Down

0 comments on commit fe0f4a6

Please sign in to comment.