From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 76BD01A066A for ; Tue, 5 May 2015 21:12:50 +1000 (AEST) From: Michael Ellerman To: Subject: [PATCH 4/6] powerpc: Add ppc_md.name to dump stack arch description Date: Tue, 5 May 2015 21:12:15 +1000 Message-Id: <1430824337-15339-4-git-send-email-mpe@ellerman.id.au> In-Reply-To: <1430824337-15339-1-git-send-email-mpe@ellerman.id.au> References: <1430824337-15339-1-git-send-email-mpe@ellerman.id.au> Cc: tj@kernel.org, Andrew Morton , linux-kernel@vger.kernel.org, Anton Blanchard List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , As soon as we know the name of the machine description we're using, add it to the dump stack arch description, which is printed in case of an oops. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/setup-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 44c8d03558ac..922115cd4714 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -605,6 +606,8 @@ void probe_machine(void) for (;;); } + dump_stack_add_arch_desc(ppc_md.name); + printk(KERN_INFO "Using %s machine description\n", ppc_md.name); } -- 2.1.0