From: Tim Deegan Subject: [PATCH] Make ACPI Cx keyhandler always print something Date: Fri, 31 Jul 2009 11:36:30 +0100 Message-ID: <20090731103630.GN5235@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ADZbWkCsHQ7r3kzd" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --ADZbWkCsHQ7r3kzd Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline 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 --ADZbWkCsHQ7r3kzd Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: attachment; filename="acpi-cx" diff -r e6c966b3a4d8 xen/arch/x86/acpi/cpu_idle.c --- a/xen/arch/x86/acpi/cpu_idle.c Thu Jul 30 17:56:23 2009 +0100 +++ b/xen/arch/x86/acpi/cpu_idle.c Fri Jul 31 11:34:35 2009 +0100 @@ -102,6 +102,7 @@ { 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) { register_keyhandler( - 'c', dump_cx, "dump cx structures"); + 'c', dump_cx, "dump ACPI Cx structures"); return 0; } __initcall(cpu_idle_key_init); --ADZbWkCsHQ7r3kzd Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --ADZbWkCsHQ7r3kzd--