ACPI: processor: remove KOBJ_ONLINE/KOBJ_OFFLINE events
This patch removes the KOBJ_ONLINE/KOBJ_OFFLINE events the driver used to generate for CPU hotplug. As far as I know, nobody consumes these. The driver core still generates KOBJ_ADD and KOBJ_REMOVE, of course. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> CC: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> CC: Zhao Yakui <yakui.zhao@intel.com> CC: Matthew Garrett <mjg@redhat.com> CC: Thomas Renninger <trenn@suse.de> CC: Dave Jones <davej@codemonkey.org.uk> CC: Kay Sievers <kay.sievers@vrfy.org> CC: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
@@ -963,9 +963,6 @@ int acpi_processor_device_add(acpi_handle handle, struct acpi_device **device)
|
|||||||
if (!pr)
|
if (!pr)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
if ((pr->id >= 0) && (pr->id < nr_cpu_ids)) {
|
|
||||||
kobject_uevent(&(*device)->dev.kobj, KOBJ_ONLINE);
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1002,18 +999,10 @@ static void __ref acpi_processor_hotplug_notify(acpi_handle handle,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pr->id >= 0 && (pr->id < nr_cpu_ids)) {
|
|
||||||
kobject_uevent(&device->dev.kobj, KOBJ_OFFLINE);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
result = acpi_processor_start(device);
|
result = acpi_processor_start(device);
|
||||||
if ((!result) && ((pr->id >= 0) && (pr->id < nr_cpu_ids))) {
|
if (result)
|
||||||
kobject_uevent(&device->dev.kobj, KOBJ_ONLINE);
|
|
||||||
} else {
|
|
||||||
printk(KERN_ERR PREFIX "Device [%s] failed to start\n",
|
printk(KERN_ERR PREFIX "Device [%s] failed to start\n",
|
||||||
acpi_device_bid(device));
|
acpi_device_bid(device));
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case ACPI_NOTIFY_EJECT_REQUEST:
|
case ACPI_NOTIFY_EJECT_REQUEST:
|
||||||
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
|
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
|
||||||
@@ -1030,9 +1019,6 @@ static void __ref acpi_processor_hotplug_notify(acpi_handle handle,
|
|||||||
"Driver data is NULL, dropping EJECT\n");
|
"Driver data is NULL, dropping EJECT\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((pr->id < nr_cpu_ids) && (cpu_present(pr->id)))
|
|
||||||
kobject_uevent(&device->dev.kobj, KOBJ_OFFLINE);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
|
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
|
||||||
|
Reference in New Issue
Block a user