mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 15:43:35 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f4dc23861d
commit
fdfc808942
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user