dump_stack: unify debug information printed by show_regs()
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / x86 / kernel / dumpstack_64.c
index b653675d5288476c2f864772fa63e4739f9de06f..addb207dab92d11ebe4d48650babe07db36a1539 100644 (file)
@@ -249,14 +249,10 @@ void show_regs(struct pt_regs *regs)
 {
        int i;
        unsigned long sp;
-       const int cpu = smp_processor_id();
-       struct task_struct *cur = current;
 
        sp = regs->sp;
-       printk("CPU %d ", cpu);
+       show_regs_print_info(KERN_DEFAULT);
        __show_regs(regs, 1);
-       printk(KERN_DEFAULT "Process %s (pid: %d, threadinfo %p, task %p)\n",
-              cur->comm, cur->pid, task_thread_info(cur), cur);
 
        /*
         * When in-kernel, we also print out the stack and code at the