WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Make ACPI Cx keyhandler always print some

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Make ACPI Cx keyhandler always print something
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 04 Aug 2009 08:50:25 -0700
Delivery-date: Tue, 04 Aug 2009 08:51:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1249212565 -3600
# Node ID a23057f52f147919ab99e9c8c327aa15c12c2510
# Parent  091209f1b95cce29767f06bc351e52b1d7b91169
Make ACPI Cx keyhandler always print something

...so that from a serial log you can tell the difference between not
pressing the key and not having anything interestying to print.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
---
 xen/arch/x86/acpi/cpu_idle.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 091209f1b95c -r a23057f52f14 xen/arch/x86/acpi/cpu_idle.c
--- a/xen/arch/x86/acpi/cpu_idle.c      Sun Aug 02 12:28:22 2009 +0100
+++ b/xen/arch/x86/acpi/cpu_idle.c      Sun Aug 02 12:29:25 2009 +0100
@@ -102,6 +102,7 @@ static void dump_cx(unsigned char key)
 {
     unsigned int cpu;
 
+    printk("'%c' pressed -> printing ACPI Cx structures\n", key);
     for_each_online_cpu ( cpu )
         if (processor_powers[cpu])
             print_acpi_power(cpu, processor_powers[cpu]);
@@ -110,7 +111,7 @@ static int __init cpu_idle_key_init(void
 static int __init cpu_idle_key_init(void)
 {
     register_keyhandler(
-        'c', dump_cx,        "dump cx structures");
+        'c', dump_cx,        "dump ACPI Cx structures");
     return 0;
 }
 __initcall(cpu_idle_key_init);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Make ACPI Cx keyhandler always print something, Xen patchbot-unstable <=