View | Details | Raw Unified | Return to bug 9772 | Differences between
and this patch

Collapse All | Expand All

(-)linux-2.6/drivers/acpi/processor_core.c (-3 / +3 lines)
Lines 1016-1024 static acpi_status acpi_processor_hotadd Link Here
1016
1016
1017
static int acpi_processor_handle_eject(struct acpi_processor *pr)
1017
static int acpi_processor_handle_eject(struct acpi_processor *pr)
1018
{
1018
{
1019
	if (cpu_online(pr->id)) {
1019
	if (cpu_online(pr->id));
1020
		return (-EINVAL);
1020
		cpu_down(pr->id);
1021
	}
1021
1022
	arch_unregister_cpu(pr->id);
1022
	arch_unregister_cpu(pr->id);
1023
	acpi_unmap_lsapic(pr->id);
1023
	acpi_unmap_lsapic(pr->id);
1024
	return (0);
1024
	return (0);
(-)linux-2.6/kernel/cpu.c (+1 lines)
Lines 287-292 int cpu_down(unsigned int cpu) Link Here
287
	cpu_maps_update_done();
287
	cpu_maps_update_done();
288
	return err;
288
	return err;
289
}
289
}
290
EXPORT_SYMBOL(cpu_down);
290
#endif /*CONFIG_HOTPLUG_CPU*/
291
#endif /*CONFIG_HOTPLUG_CPU*/
291
292
292
/* Requires cpu_add_remove_lock to be held */
293
/* Requires cpu_add_remove_lock to be held */

Return to bug 9772