[PATCH 5/5] Make modified printk.c build without CONFIG_PM
Werner Almesberger
werner at openmoko.org
Sun Jan 18 01:19:45 CET 2009
Our suspend/resume debugging code in vprintk uses global_inside_suspend,
which is only defined if CONFIG_PM is enabled.
Fortunately, the fix is straightforward: if there's no CONFIG_PM, then
there's nothing to debug here either :-)
Signed-off-by: Werner Almesberger <werner at openmoko.org>
---
Index: ktrack/kernel/printk.c
===================================================================
--- ktrack.orig/kernel/printk.c 2009-01-17 21:37:15.000000000 -0200
+++ ktrack/kernel/printk.c 2009-01-17 21:37:58.000000000 -0200
@@ -676,7 +676,7 @@
/* Emit the output into the temporary buffer */
printed_len += vscnprintf(printk_buf + printed_len,
sizeof(printk_buf) - printed_len, fmt, args);
-#ifdef CONFIG_MACH_NEO1973_GTA02
+#if defined(CONFIG_MACH_NEO1973_GTA02) && defined(CONFIG_PM)
/* if you're debugging resume, the normal methods can change resume
* ordering behaviours because their debugging output is synchronous
* (ie, CONFIG_DEBUG_LL). If your problem is an OOPS, this code
More information about the openmoko-kernel
mailing list