aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-06-22 16:41:04 -0400
committerLen Brown <len.brown@intel.com>2009-06-25 12:16:32 -0400
commitc1815e074079838d36d89e45e92b7ee317190700 (patch)
tree4965dc315b2ef4242ee902f7404f1beced00a6f8 /drivers/acpi
parent28d0325ce6e0a52f53d8af687e6427fee59004d3 (diff)
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/processor_core.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c
index 84e0f3c07442..c6ec68d4f165 100644
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
@@ -963,9 +963,6 @@ int acpi_processor_device_add(acpi_handle handle, struct acpi_device **device)
963 if (!pr) 963 if (!pr)
964 return -ENODEV; 964 return -ENODEV;
965 965
966 if ((pr->id >= 0) && (pr->id < nr_cpu_ids)) {
967 kobject_uevent(&(*device)->dev.kobj, KOBJ_ONLINE);
968 }
969 return 0; 966 return 0;
970} 967}
971 968
@@ -1002,18 +999,10 @@ static void __ref acpi_processor_hotplug_notify(acpi_handle handle,
1002 break; 999 break;
1003 } 1000 }
1004 1001
1005 if (pr->id >= 0 && (pr->id < nr_cpu_ids)) {
1006 kobject_uevent(&device->dev.kobj, KOBJ_OFFLINE);
1007 break;
1008 }
1009
1010 result = acpi_processor_start(device); 1002 result = acpi_processor_start(device);
1011 if ((!result) && ((pr->id >= 0) && (pr->id < nr_cpu_ids))) { 1003 if (result)
1012 kobject_uevent(&device->dev.kobj, KOBJ_ONLINE);
1013 } else {
1014 printk(KERN_ERR PREFIX "Device [%s] failed to start\n", 1004 printk(KERN_ERR PREFIX "Device [%s] failed to start\n",
1015 acpi_device_bid(device)); 1005 acpi_device_bid(device));
1016 }
1017 break; 1006 break;
1018 case ACPI_NOTIFY_EJECT_REQUEST: 1007 case ACPI_NOTIFY_EJECT_REQUEST:
1019 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 1008 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
@@ -1030,9 +1019,6 @@ static void __ref acpi_processor_hotplug_notify(acpi_handle handle,
1030 "Driver data is NULL, dropping EJECT\n"); 1019 "Driver data is NULL, dropping EJECT\n");
1031 return; 1020 return;
1032 } 1021 }
1033
1034 if ((pr->id < nr_cpu_ids) && (cpu_present(pr->id)))
1035 kobject_uevent(&device->dev.kobj, KOBJ_OFFLINE);
1036 break; 1022 break;
1037 default: 1023 default:
1038 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 1024 ACPI_DEBUG_PRINT((ACPI_DB_INFO,