Skip to contentSkip to conversation

acpi: trivial cleanups

PATCH Pavel Machek 2 participants 3 messages Aug 12, 2008 – Aug 13, 2008 ACPI

lore
Share & tools
lore
#0 lore raw

Trivial cleanups for ACPI. Fix misspelling in printk(), fix mismerge, add file header.

---
commit 2d81db56ce92e04b57b76c0ca6a9b57432bf8fce
tree e3c47f9a5448b5be5f64224229d6eac3320d12e4
parent 7f8e83c414b78ee89b8e59c1a1cb74937f519be4
author Pavel <[email protected]> Tue, 12 Aug 2008 12:20:29 +0200 committer Pavel <[email protected]> Tue, 12 Aug 2008 12:20:29 +0200

 drivers/acpi/processor_core.c |    2 +-
 drivers/acpi/processor_idle.c |    1 -
 drivers/acpi/reboot.c         |    6 +++++-
 3 files changed, 6 insertions(+), 3 deletions(-)
drivers/acpi/processor_core.c +1 -1
index e36422a..d3f0a62 100644
@@ -123,7 +123,7 @@ struct acpi_processor_errata errata __re
 static int set_no_mwait(const struct dmi_system_id *id)
 {
 	printk(KERN_NOTICE PREFIX "%s detected - "
-		"disable mwait for CPU C-stetes\n", id->ident);
+		"disabling mwait for CPU C-states\n", id->ident);
 	idle_nomwait = 1;
 	return 0;
 }
drivers/acpi/processor_idle.c +0 -1
index 283c08f..cf5b1b7 100644
@@ -41,7 +41,6 @@ #include <linux/sched.h>	/* need_resched
 #include <linux/pm_qos_params.h>
 #include <linux/clockchips.h>
 #include <linux/cpuidle.h>
-#include <linux/cpuidle.h>
 
 /*
  * Include the apic definitions for x86 to have the APIC timer related defines
drivers/acpi/reboot.c +5 -1
index a6b662c..b4d9cb3 100644
@@ -1,4 +1,8 @@
-
+/*
+ * Reset the machine using the RESET_REG
+ *
+ * Distribute under GPL.
+ */
 #include <linux/pci.h>
 #include <linux/acpi.h>
 #include <acpi/reboot.h>
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw
Quoted 8 lines · On Tue, 12 Aug 2008 12:24:34 +0200 Pavel Machek <[email protected]> wrote:

Trivial cleanups for ACPI. Fix misspelling in printk(), fix mismerge, add file header.

drivers/acpi/processor_core.c struct acpi_processor_errata errata __re · line 128

Quoted 7 lines
drivers/acpi/processor_core.c +1 -1
@@ -123,7 +123,7 @@ struct acpi_processor_errata errata __re
 static int set_no_mwait(const struct dmi_system_id *id)
 {
 	printk(KERN_NOTICE PREFIX "%s detected - "
-		"disable mwait for CPU C-stetes\n", id->ident);
+		"disabling mwait for CPU C-states\n", id->ident);
 	idle_nomwait = 1;
 	return 0;

OK

drivers/acpi/processor_idle.c #include <linux/sched.h> /* need_resched · line 44

Quoted 9 lines
drivers/acpi/processor_idle.c +0 -1
index 283c08f..cf5b1b7 100644
@@ -41,7 +41,6 @@ #include <linux/sched.h>	/* need_resched
 #include <linux/pm_qos_params.h>
 #include <linux/clockchips.h>
 #include <linux/cpuidle.h>
-#include <linux/cpuidle.h>

OK

drivers/acpi/reboot.c line 5

Quoted 13 lines
drivers/acpi/processor_idle.c +0 -0
 /*
  * Include the apic definitions for x86 to have the APIC timer related defines
drivers/acpi/reboot.c +5 -1
index a6b662c..b4d9cb3 100644
@@ -1,4 +1,8 @@
-
+/*
+ * Reset the machine using the RESET_REG
+ *
+ * Distribute under GPL.
+ */

That was a trivial dirtyup. Should at least be "Distributed under the GPL" but I suspect that the policy in drivers/acpi/ is to add fancier copyright text than this.

#2 lore raw
Quoted 6 lines · Andrew Morton
Quoted 3 lines · On Tue, 12 Aug 2008 12:24:34 +0200 Pavel Machek <[email protected]> wrote:

Trivial cleanups for ACPI. Fix misspelling in printk(), fix mismerge, add file header.

...

Quoted 4 lines
Quoted 4 lines

+++ b/drivers/acpi/reboot.c

drivers/acpi/reboot.c +1 -1
@@ -1,4 +1,8 @@
-
+/*
Quoted 8 lines

drivers/acpi/reboot.c line 5

Quoted 4 lines
drivers/acpi/reboot.c +4 -0
+ * Reset the machine using the RESET_REG
+ *
+ * Distribute under GPL.
+ */

That was a trivial dirtyup. Should at least be "Distributed under the GPL" but I suspect that the policy in drivers/acpi/ is to add fancier copyright text than this.

Ok, sorry about that.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html