Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:53251 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27007231AbaH1QDSIkJBG (ORCPT ); Thu, 28 Aug 2014 18:03:18 +0200 From: Jayachandran C Subject: [PATCH] MIPS: Netlogic: Use MIPS topology.h Date: Thu, 28 Aug 2014 21:23:52 +0530 Message-ID: <1409241232-4205-1-git-send-email-jchandra@broadcom.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: linux-mips@linux-mips.org Cc: Jayachandran C , Ralf Baechle , Guenter Roeck , Huacai Chen Message-ID: <20140828155352.D8cVxwav2CRemlIvSB7-hMpNegOo6cKlTFr4hbo6xIU@z> commit bbbf6d8768f5 ("MIPS: NL: Fix nlm_xlp_defconfig build error") removed topology related macros from mach-netlogic/topology.h, but did not setup the current_cpu_data.package. Fix this by setting the package field in netlogic/common/smp.c. Also mach-netlogic/topology.h can be removed now as it no longer needs to override mips topology definitions. Signed-off-by: Jayachandran C Cc: Ralf Baechle Cc: Guenter Roeck Cc: Huacai Chen --- [ Ralf: This is for 3.17, fixes an issue which went into -rc1, and was fixed partially in -rc2] arch/mips/include/asm/mach-netlogic/topology.h | 15 --------------- arch/mips/netlogic/common/smp.c | 1 + 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 arch/mips/include/asm/mach-netlogic/topology.h diff --git a/arch/mips/include/asm/mach-netlogic/topology.h b/arch/mips/include/asm/mach-netlogic/topology.h deleted file mode 100644 index 0eb43c8..0000000 --- a/arch/mips/include/asm/mach-netlogic/topology.h +++ /dev/null @@ -1,15 +0,0 @@ -/* - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - * - * Copyright (C) 2013 Broadcom Corporation - */ -#ifndef _ASM_MACH_NETLOGIC_TOPOLOGY_H -#define _ASM_MACH_NETLOGIC_TOPOLOGY_H - -#include - -#include - -#endif /* _ASM_MACH_NETLOGIC_TOPOLOGY_H */ diff --git a/arch/mips/netlogic/common/smp.c b/arch/mips/netlogic/common/smp.c index 4fde7ac..f23fe22 100644 --- a/arch/mips/netlogic/common/smp.c +++ b/arch/mips/netlogic/common/smp.c @@ -120,6 +120,7 @@ static void nlm_init_secondary(void) hwtid = hard_smp_processor_id(); current_cpu_data.core = hwtid / NLM_THREADS_PER_CORE; + current_cpu_data.package = nlm_cpuid_to_node(hwtid); nlm_percpu_init(hwtid); nlm_smp_irq_init(hwtid); } -- 1.9.1