#include <linux/workqueue.h>
#include <linux/preempt.h>
-extern void ram_console_enable_console(int);
-
struct panic_header {
u32 magic;
#define PANIC_MAGIC 0xdeadf00d
if (!threads_offset)
threads_offset = ctx->mtd->writesize;
- ram_console_enable_console(0);
-
log_buf_clear();
show_state_filter(0);
threads_len = apanic_write_console(ctx->mtd, threads_offset);
.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)
{