Skip to content

Commit 9707b7e

Browse files
Thomas Bogendoerferpaulburton
authored andcommitted
MIPS: SGI-IP27: do xtalk scanning later
Move xtalk scanning to a later boot stage to be able using things like kmalloc and friends. 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
1 parent ab68280 commit 9707b7e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

arch/mips/sgi-ip27/ip27-init.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ EXPORT_SYMBOL_GPL(sn_cpu_info);
5252

5353
extern void pcibr_setup(cnodeid_t);
5454

55-
extern void xtalk_probe_node(cnodeid_t nid);
56-
5755
static void per_hub_init(cnodeid_t cnode)
5856
{
5957
struct hub_data *hub = hub_data(cnode);
@@ -71,7 +69,6 @@ static void per_hub_init(cnodeid_t cnode)
7169
REMOTE_HUB_S(nasid, IIO_ICTO, 0xff);
7270

7371
hub_rtc_init(cnode);
74-
xtalk_probe_node(cnode);
7572

7673
#ifdef CONFIG_REPLICATE_EXHANDLERS
7774
/*

arch/mips/sgi-ip27/ip27-xtalk.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static int xbow_probe(nasid_t nasid)
9999
return 0;
100100
}
101101

102-
void xtalk_probe_node(cnodeid_t nid)
102+
static void xtalk_probe_node(cnodeid_t nid)
103103
{
104104
volatile u64 hubreg;
105105
nasid_t nasid;
@@ -133,3 +133,14 @@ void xtalk_probe_node(cnodeid_t nid)
133133
break;
134134
}
135135
}
136+
137+
static int __init xtalk_init(void)
138+
{
139+
cnodeid_t cnode;
140+
141+
for_each_online_node(cnode)
142+
xtalk_probe_node(cnode);
143+
144+
return 0;
145+
}
146+
arch_initcall(xtalk_init);

0 commit comments

Comments
 (0)