Received: by 2002:a17:90a:37e8:0:0:0:0 with SMTP id v95csp241748pjb; Thu, 3 Oct 2019 05:28:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/z5JZzgfyA2u5tBumF75VaAwDDUPcP+fQcmx/fJQRXl1EeKwiYppRJiIQz9DgZzRGhS+i X-Received: by 2002:a50:9eac:: with SMTP id a41mr9355911edf.193.1570105696958; Thu, 03 Oct 2019 05:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570105696; cv=none; d=google.com; s=arc-20160816; b=xmPuKu6k0g37h2ggKKbXMSnRZ3QNM/9h8+33mpEyMxMU/RElHEsBUroWs4uq30Ozxr 5XcFvCJjxeyoipDPCSG5zhJox4MylW0HW3L2TzPUEYOe/e/CIzyT/xbfDf4cTFQYTj0w 56HqZ5QfFw4C47rXNDg+w2C122E6hK8z6FKQ/PMv4UxTQRIapx8xAdmd/iVsYq1ZrmzL 4r2NfPHW72XyiJZ+Pe2/YSKt4O93J14Ruukv7nKVFK4/HaTBr71z/1GazRfNzDgBiYWW HlcobDhVXUUQKT1zZWcSXhrH26hRFjTnh+ctWDuxxWZP73qXMuhbrg/p4nWE2zaZtU/Z 3vQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=vlGA1lsO6cr3pdVlCMzLV7QPs4l3UoLp680O7e6qKcQ=; b=sfFgjpsZ9pp0tJX6I5K58QE+DZfMMFP9IFvz2bWo7RYlZa5Fu36qAXyCsag37GXK+S De4GbX1mC9rbYG0tIPGP1/xN2+IauupIImbiiYyDC0wXU60lhgnJDgy73QDhafPhrVJs pGB8YNO51flypkbIQ58DfRNfkQyynXhG0INC6gZ3Wtw4jjHFI9mdUZdtPQyVV3S7ZhsC 9v35FCzWMPPygjuKhUhBBCMbe2T7ZOOQcvdMP4TXTDFTpFFnGCU7/QPbVJAcLRKAxoa/ MRVZ62S1ZtfAf7JePmz6DPhSwJLNGMXcZn1CoOSEY769FDrJrPFaeL+w/SnOHiPRaw8V XCRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7si1098874ejv.225.2019.10.03.05.27.51; Thu, 03 Oct 2019 05:28:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729248AbfJCM1f (ORCPT + 99 others); Thu, 3 Oct 2019 08:27:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:37854 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727242AbfJCM1e (ORCPT ); Thu, 3 Oct 2019 08:27:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id ED4A2AD49; Thu, 3 Oct 2019 12:27:32 +0000 (UTC) From: Thomas Bogendoerfer To: Ralf Baechle , Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] MIPS: SGI-IP27: remove not used stuff inherited from IRIX Date: Thu, 3 Oct 2019 14:27:23 +0200 Message-Id: <20191003122724.12239-1-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most of the SN/SN0 header files are inherited from IRIX header files, but not all of that stuff is useful for Linux. Remove not used parts. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/sn/arch.h | 8 -------- arch/mips/include/asm/sn/sn0/arch.h | 2 -- arch/mips/include/asm/sn/types.h | 3 --- 3 files changed, 13 deletions(-) diff --git a/arch/mips/include/asm/sn/arch.h b/arch/mips/include/asm/sn/arch.h index 3f1fb1454749..97fa2b6440a1 100644 --- a/arch/mips/include/asm/sn/arch.h +++ b/arch/mips/include/asm/sn/arch.h @@ -19,8 +19,6 @@ #define cputonasid(cpu) (sn_cpu_info[(cpu)].p_nasid) #define cputoslice(cpu) (sn_cpu_info[(cpu)].p_slice) -#define makespnum(_nasid, _slice) \ - (((_nasid) << CPUS_PER_NODE_SHFT) | (_slice)) #define INVALID_NASID (nasid_t)-1 #define INVALID_CNODEID (cnodeid_t)-1 @@ -47,12 +45,6 @@ extern nasid_t compact_to_nasid_node[MAX_COMPACT_NODES]; * will continue to work. Don't use the arrays above directly. */ -#define NASID_TO_REGION(nnode) \ - ((nnode) >> \ - (is_fine_dirmode() ? NASID_TO_FINEREG_SHFT : NASID_TO_COARSEREG_SHFT)) - -extern cnodeid_t nasid_to_compact_node[MAX_NASIDS]; -extern nasid_t compact_to_nasid_node[MAX_COMPACT_NODES]; extern cnodeid_t cpuid_to_compact_node[MAXCPUS]; #define NASID_TO_COMPACT_NODEID(nnode) (nasid_to_compact_node[nnode]) diff --git a/arch/mips/include/asm/sn/sn0/arch.h b/arch/mips/include/asm/sn/sn0/arch.h index 425a67e6a947..ea8a6983f6a4 100644 --- a/arch/mips/include/asm/sn/sn0/arch.h +++ b/arch/mips/include/asm/sn/sn0/arch.h @@ -66,7 +66,5 @@ #define SLOT_MIN_MEM_SIZE (32*1024*1024) #define CPUS_PER_NODE 2 /* CPUs on a single hub */ -#define CPUS_PER_NODE_SHFT 1 /* Bits to shift in the node number */ -#define CPUS_PER_SUBNODE 2 /* CPUs on a single hub PI */ #endif /* _ASM_SN_SN0_ARCH_H */ diff --git a/arch/mips/include/asm/sn/types.h b/arch/mips/include/asm/sn/types.h index 6d24d4e8b9ed..f9d0bc2007c3 100644 --- a/arch/mips/include/asm/sn/types.h +++ b/arch/mips/include/asm/sn/types.h @@ -12,13 +12,10 @@ #include typedef unsigned long cpuid_t; -typedef unsigned long cnodemask_t; typedef signed short nasid_t; /* node id in numa-as-id space */ typedef signed short cnodeid_t; /* node id in compact-id space */ typedef signed char partid_t; /* partition ID type */ typedef signed short moduleid_t; /* user-visible module number type */ -typedef signed short cmoduleid_t; /* kernel compact module id type */ -typedef unsigned char clusterid_t; /* Clusterid of the cell */ typedef dev_t vertex_hdl_t; /* hardware graph vertex handle */ -- 2.16.4