aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/printk.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2012-03-13 11:26:52 -0400
committerIngo Molnar <mingo@elte.hu>2012-03-13 11:26:52 -0400
commit47258cf3c4aa5d56e678bafe0dd0d03ddd980b88 (patch)
tree4856f0fb1185ba97f320a7ed6fb63bf136708a42 /kernel/printk.c
parentc308b56b5398779cd3da0f62ab26b0453494c3d4 (diff)
parentfde7d9049e55ab85a390be7f415d74c9f62dd0f9 (diff)
Merge tag 'v3.3-rc7' into sched/core
Merge reason: merge back final fixes, prepare for the merge window. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/printk.c')
-rw-r--r--kernel/printk.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index 7ca7ba591e21..49a2ae4a8dc7 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -702,6 +702,9 @@ static bool printk_time = 0;
702#endif 702#endif
703module_param_named(time, printk_time, bool, S_IRUGO | S_IWUSR); 703module_param_named(time, printk_time, bool, S_IRUGO | S_IWUSR);
704 704
705static bool always_kmsg_dump;
706module_param_named(always_kmsg_dump, always_kmsg_dump, bool, S_IRUGO | S_IWUSR);
707
705/* Check if we have any console registered that can be called early in boot. */ 708/* Check if we have any console registered that can be called early in boot. */
706static int have_callable_console(void) 709static int have_callable_console(void)
707{ 710{
@@ -1766,6 +1769,9 @@ void kmsg_dump(enum kmsg_dump_reason reason)
1766 unsigned long l1, l2; 1769 unsigned long l1, l2;
1767 unsigned long flags; 1770 unsigned long flags;
1768 1771
1772 if ((reason > KMSG_DUMP_OOPS) && !always_kmsg_dump)
1773 return;
1774
1769 /* Theoretically, the log could move on after we do this, but 1775 /* Theoretically, the log could move on after we do this, but
1770 there's not a lot we can do about that. The new messages 1776 there's not a lot we can do about that. The new messages
1771 will overwrite the start of what we dump. */ 1777 will overwrite the start of what we dump. */