mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] remove is_processor_present prototype
@ 2008-02-15 20:07 Glauber Costa
  2008-02-15 20:07 ` [PATCH] use ACPI_DEBUG_PRINT instead of printk Glauber Costa
  0 siblings, 1 reply; 2+ messages in thread
From: Glauber Costa @ 2008-02-15 20:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: akpm, andrew.grover, paul.s.diefenbaugh, linux,
	anil.s.keshavamurthy, lenb, linux-acpi, Glauber Costa

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

Signed-off-by: Glauber Costa <gcosta@redhat.com>
---
 drivers/acpi/processor_core.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c
index 75ccf5d..923fddb 100644
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
@@ -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;
-- 
1.4.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] use ACPI_DEBUG_PRINT instead of printk
  2008-02-15 20:07 [PATCH] remove is_processor_present prototype Glauber Costa
@ 2008-02-15 20:07 ` Glauber Costa
  0 siblings, 0 replies; 2+ messages in thread
From: Glauber Costa @ 2008-02-15 20:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: akpm, andrew.grover, paul.s.diefenbaugh, linux,
	anil.s.keshavamurthy, lenb, linux-acpi, Glauber Costa

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

Signed-off-by: Glauber Costa <gcosta@redhat.com>
---
 drivers/acpi/processor_core.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c
index 923fddb..673fb92 100644
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
@@ -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;
-- 
1.4.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-15 20:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-15 20:07 [PATCH] remove is_processor_present prototype Glauber Costa
2008-02-15 20:07 ` [PATCH] use ACPI_DEBUG_PRINT instead of printk Glauber Costa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®