aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r--arch/x86/kernel/process.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 5e2ba634ea15..90cf1250a005 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -10,6 +10,8 @@
10#include <linux/clockchips.h> 10#include <linux/clockchips.h>
11#include <linux/random.h> 11#include <linux/random.h>
12#include <linux/user-return-notifier.h> 12#include <linux/user-return-notifier.h>
13#include <linux/dmi.h>
14#include <linux/utsname.h>
13#include <trace/events/power.h> 15#include <trace/events/power.h>
14#include <linux/hw_breakpoint.h> 16#include <linux/hw_breakpoint.h>
15#include <asm/system.h> 17#include <asm/system.h>
@@ -90,6 +92,22 @@ void exit_thread(void)
90 } 92 }
91} 93}
92 94
95void show_regs_common(void)
96{
97 const char *board;
98
99 board = dmi_get_system_info(DMI_PRODUCT_NAME);
100 if (!board)
101 board = "";
102
103 printk("\n");
104 printk(KERN_INFO "Pid: %d, comm: %.20s %s %s %.*s %s\n",
105 current->pid, current->comm, print_tainted(),
106 init_utsname()->release,
107 (int)strcspn(init_utsname()->version, " "),
108 init_utsname()->version, board);
109}
110
93void flush_thread(void) 111void flush_thread(void)
94{ 112{
95 struct task_struct *tsk = current; 113 struct task_struct *tsk = current;