提交 fdfc8089 编写于 作者: S San Mehat 提交者: Greg Kroah-Hartman

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: NSan Mehat <san@google.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 f4dc2386
...@@ -146,6 +146,14 @@ static struct console ram_console = { ...@@ -146,6 +146,14 @@ static struct console ram_console = {
.index = -1, .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 static void __init
ram_console_save_old(struct ram_console_buffer *buffer, char *dest) ram_console_save_old(struct ram_console_buffer *buffer, char *dest)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册