[PATCH] kernel: preserve boot-time printk output after resume From: Nigel Cunningham This makes the kernel preserve boot-time printk() output after resume. Cc: Pavel Machek Cc: Rafael J. Wysocki Signed-off-by: Pekka Enberg --- kernel/printk.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) Index: 2.6/kernel/printk.c =================================================================== --- 2.6.orig/kernel/printk.c 2007-04-27 15:39:26.000000000 +0300 +++ 2.6/kernel/printk.c 2007-04-27 15:49:25.000000000 +0300 @@ -92,9 +92,9 @@ static DEFINE_SPINLOCK(logbuf_lock); * The indices into log_buf are not constrained to log_buf_len - they * must be masked before subscripting */ -static unsigned long log_start; /* Index into log_buf: next char to be read by syslog() */ -static unsigned long con_start; /* Index into log_buf: next char to be sent to consoles */ -static unsigned long log_end; /* Index into log_buf: most-recently-written-char + 1 */ +static unsigned long __nosavedata log_start; /* Index into log_buf: next char to be read by syslog() */ +static unsigned long __nosavedata con_start; /* Index into log_buf: next char to be sent to consoles */ +static unsigned long __nosavedata log_end; /* Index into log_buf: most-recently-written-char + 1 */ /* * Array of consoles built from command line options (console=) @@ -117,10 +117,10 @@ static int console_may_schedule; #ifdef CONFIG_PRINTK -static char __log_buf[__LOG_BUF_LEN]; -static char *log_buf = __log_buf; -static int log_buf_len = __LOG_BUF_LEN; -static unsigned long logged_chars; /* Number of chars produced since last read+clear operation */ +static char __nosavedata __log_buf[__LOG_BUF_LEN]; +static char __nosavedata *log_buf = __log_buf; +static int __nosavedata log_buf_len = __LOG_BUF_LEN; +static unsigned long __nosavedata logged_chars; /* Number of chars produced since last read+clear operation */ static int __init log_buf_len_setup(char *str) {