Skip to content

Commit

Permalink
Merge branch 'misc-2.6.35' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Len Brown committed Jun 12, 2010
2 parents 42de553 + 934231d commit c1db9d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/acpi/fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ static int __init acpi_fan_init(void)
{
int result = 0;


#ifdef CONFIG_ACPI_PROCFS
acpi_fan_dir = proc_mkdir(ACPI_FAN_CLASS, acpi_root_dir);
if (!acpi_fan_dir)
Expand All @@ -356,7 +355,9 @@ static int __init acpi_fan_init(void)

result = acpi_bus_register_driver(&acpi_fan_driver);
if (result < 0) {
#ifdef CONFIG_ACPI_PROCFS
remove_proc_entry(ACPI_FAN_CLASS, acpi_root_dir);
#endif
return -ENODEV;
}

Expand Down
5 changes: 5 additions & 0 deletions drivers/acpi/processor_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,11 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
return 0;
}

#ifdef CONFIG_SMP
if (pr->id >= setup_max_cpus && pr->id != 0)
return 0;
#endif

BUG_ON((pr->id >= nr_cpu_ids) || (pr->id < 0));

/*
Expand Down
4 changes: 3 additions & 1 deletion init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ static char *ramdisk_execute_command;

#ifdef CONFIG_SMP
/* Setup configured maximum number of CPUs to activate */
unsigned int __initdata setup_max_cpus = NR_CPUS;
unsigned int setup_max_cpus = NR_CPUS;
EXPORT_SYMBOL(setup_max_cpus);


/*
* Setup routine for controlling SMP activation
Expand Down

0 comments on commit c1db9d9

Please sign in to comment.