Merge branch 'misc-2.6.35' into release

This commit is contained in:
Len Brown 2010-06-12 01:16:51 -04:00
Родитель 42de5532f4 934231de70
Коммит c1db9d9bb2
3 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -347,7 +347,6 @@ static int __init acpi_fan_init(void)
{ {
int result = 0; int result = 0;
#ifdef CONFIG_ACPI_PROCFS #ifdef CONFIG_ACPI_PROCFS
acpi_fan_dir = proc_mkdir(ACPI_FAN_CLASS, acpi_root_dir); acpi_fan_dir = proc_mkdir(ACPI_FAN_CLASS, acpi_root_dir);
if (!acpi_fan_dir) if (!acpi_fan_dir)
@ -356,7 +355,9 @@ static int __init acpi_fan_init(void)
result = acpi_bus_register_driver(&acpi_fan_driver); result = acpi_bus_register_driver(&acpi_fan_driver);
if (result < 0) { if (result < 0) {
#ifdef CONFIG_ACPI_PROCFS
remove_proc_entry(ACPI_FAN_CLASS, acpi_root_dir); remove_proc_entry(ACPI_FAN_CLASS, acpi_root_dir);
#endif
return -ENODEV; return -ENODEV;
} }

Просмотреть файл

@ -581,6 +581,11 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
return 0; 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)); BUG_ON((pr->id >= nr_cpu_ids) || (pr->id < 0));
/* /*

Просмотреть файл

@ -125,7 +125,9 @@ static char *ramdisk_execute_command;
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
/* Setup configured maximum number of CPUs to activate */ /* 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 * Setup routine for controlling SMP activation