staging: android: ramconsole: Ensure ramconsole does not get cluttered by apanic...
authorSan Mehat <san@google.com>
Thu, 17 Sep 2009 21:27:41 +0000 (14:27 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Nov 2011 11:36:55 +0000 (20:36 +0900)
[Note, this is part of a patch from Sam, just the drivers/staging/
portion, that adds a function that the apanic code calls, but the apanic
code isn't here, so just include part of this to make merges and diffs
easier and this keeps things self-contained - gregkh]

Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/android/ram_console.c

index 8f18a59..d735be4 100644 (file)
@@ -146,6 +146,14 @@ static struct console ram_console = {
        .index  = -1,
 };
 
+void ram_console_enable_console(int enabled)
+{
+       if (enabled)
+               ram_console.flags |= CON_ENABLED;
+       else
+               ram_console.flags &= ~CON_ENABLED;
+}
+
 static void __init
 ram_console_save_old(struct ram_console_buffer *buffer, char *dest)
 {