diff options
author | Thomas Bogendoerfer <tbogendoerfer@suse.de> | 2019-10-03 14:27:24 +0200 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-10-07 09:37:59 -0700 |
commit | 4bf841ebf17aaa0f7712623896c699b44fa92f44 (patch) | |
tree | f797ee734d0eb2409905f5024f9a5d0ef75404d0 /arch/mips/sgi-ip27/ip27-xtalk.c | |
parent | 46a73e9e6ccc77619838885439873af41a5ad1c1 (diff) | |
download | kernel_replicant_linux-4bf841ebf17aaa0f7712623896c699b44fa92f44.tar.gz kernel_replicant_linux-4bf841ebf17aaa0f7712623896c699b44fa92f44.tar.bz2 kernel_replicant_linux-4bf841ebf17aaa0f7712623896c699b44fa92f44.zip |
MIPS: SGI-IP27: get rid of compact node ids
Node ids don't need to be contiguous in Linux, so the concept to
use compact node ids to make them contiguous isn't needed at all.
This patchset therefore removes it.
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'arch/mips/sgi-ip27/ip27-xtalk.c')
-rw-r--r-- | arch/mips/sgi-ip27/ip27-xtalk.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/mips/sgi-ip27/ip27-xtalk.c b/arch/mips/sgi-ip27/ip27-xtalk.c index 4a1f0b0c29e2..5602bb113921 100644 --- a/arch/mips/sgi-ip27/ip27-xtalk.c +++ b/arch/mips/sgi-ip27/ip27-xtalk.c @@ -138,14 +138,12 @@ static int xbow_probe(nasid_t nasid) return 0; } -static void xtalk_probe_node(cnodeid_t nid) +static void xtalk_probe_node(nasid_t nasid) { volatile u64 hubreg; - nasid_t nasid; xwidget_part_num_t partnum; widgetreg_t widget_id; - nasid = COMPACT_TO_NASID_NODEID(nid); hubreg = REMOTE_HUB_L(nasid, IIO_LLP_CSR); /* check whether the link is up */ @@ -173,10 +171,10 @@ static void xtalk_probe_node(cnodeid_t nid) static int __init xtalk_init(void) { - cnodeid_t cnode; + nasid_t nasid; - for_each_online_node(cnode) - xtalk_probe_node(cnode); + for_each_online_node(nasid) + xtalk_probe_node(nasid); return 0; } |