Skip to contentSkip to conversation

remove is_processor_present prototype

PATCH New Glauber Costa 1 participant 2 messages Feb 15, 2008 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove is_processor_present prototype

The function itself is defined just below,
so this prototype is not really useful.

---
 drivers/acpi/processor_core.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/acpi/processor_core.c +0 -2
index 75ccf5d..923fddb 100644
@@ -826,8 +826,6 @@ #ifdef CONFIG_ACPI_HOTPLUG_CPU
  * 	Acpi processor hotplug support 				       	    *
  ****************************************************************************/
 
-static int is_processor_present(acpi_handle handle);
-
 static int is_processor_present(acpi_handle handle)
 {
 	acpi_status status;
Signature · 1 line
1.4.2
#1 lore raw

PATCH 1/1 use ACPI_DEBUG_PRINT instead of printk

For consistency, use ACPI_DEBUG_PRINT instead of printk in acpi_processor_hotplug_notify() for BUS_CHECK and DEVICE_CHECK events

---
 drivers/acpi/processor_core.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/acpi/processor_core.c +3 -2
index 923fddb..673fb92 100644
@@ -890,9 +890,10 @@ acpi_processor_hotplug_notify(acpi_handl
 	switch (event) {
 	case ACPI_NOTIFY_BUS_CHECK:
 	case ACPI_NOTIFY_DEVICE_CHECK:
-		printk("Processor driver received %s event\n",
+		ACPI_DEBUG_PRINT((ACPI_DB_INFO,
+		"Processor driver received %s event\n",
 		       (event == ACPI_NOTIFY_BUS_CHECK) ?
-		       "ACPI_NOTIFY_BUS_CHECK" : "ACPI_NOTIFY_DEVICE_CHECK");
+		       "ACPI_NOTIFY_BUS_CHECK" : "ACPI_NOTIFY_DEVICE_CHECK"));
 
 		if (!is_processor_present(handle))
 			break;
Signature · 1 line
1.4.2