Skip to content

Commit

Permalink
staging: android: ramconsole: Ensure ramconsole does not get cluttere…
Browse files Browse the repository at this point in the history
…d 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>
  • Loading branch information
San Mehat authored and Greg Kroah-Hartman committed Nov 30, 2011
1 parent f4dc238 commit fdfc808
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/staging/android/ram_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit fdfc808

Please sign in to comment.