diff options
author | San Mehat | 2009-09-17 23:27:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-11-30 12:36:55 +0100 |
commit | fdfc8089429b58b4ac901926fe83fa85b0b7bfc1 (patch) | |
tree | 47ef7ed3e18f8e586fc0c6fb718cb8705ab94640 /drivers/staging/android | |
parent | Staging: android: add the code back to the build (diff) | |
download | kernel-qcow2-linux-fdfc8089429b58b4ac901926fe83fa85b0b7bfc1.tar.gz kernel-qcow2-linux-fdfc8089429b58b4ac901926fe83fa85b0b7bfc1.tar.xz kernel-qcow2-linux-fdfc8089429b58b4ac901926fe83fa85b0b7bfc1.zip |
staging: android: ramconsole: Ensure ramconsole does not get cluttered by apanic threads
[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>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r-- | drivers/staging/android/ram_console.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/staging/android/ram_console.c b/drivers/staging/android/ram_console.c index 8f18a59744cd..d735be45f162 100644 --- a/drivers/staging/android/ram_console.c +++ b/drivers/staging/android/ram_console.c @@ -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) { |