Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758175AbbEELM6 (ORCPT ); Tue, 5 May 2015 07:12:58 -0400 Received: from ozlabs.org ([103.22.144.67]:34951 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758151AbbEELMu (ORCPT ); Tue, 5 May 2015 07:12:50 -0400 From: Michael Ellerman To: Cc: , Anton Blanchard , tj@kernel.org, Andrew Morton Subject: [PATCH 2/6] powerpc: Add cpu name to dump stack arch description Date: Tue, 5 May 2015 21:12:13 +1000 Message-Id: <1430824337-15339-2-git-send-email-mpe@ellerman.id.au> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1430824337-15339-1-git-send-email-mpe@ellerman.id.au> References: <1430824337-15339-1-git-send-email-mpe@ellerman.id.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1094 Lines: 37 As soon as we know the name of the cpu we're on, add it to the dump stack arch description, which is printed in case of an oops. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/cputable.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index 60262fdf35ba..cf5e0c9b80cb 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -2174,6 +2175,8 @@ static struct cpu_spec * __init setup_cpu_spec(unsigned long offset, } #endif /* CONFIG_PPC64 || CONFIG_BOOKE */ + dump_stack_add_arch_desc(t->cpu_name); + return t; } -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/