mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Signed-off-by: Paul Burton <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: James Hogan <[email protected]> Cc: [email protected] Cc: [email protected]
This commit is contained in:
1 parent
ab68280ec2
commit
9707b7e639
2 files changed
+12
-4
No files matched your search
@@ -52,8 +52,6 @@ EXPORT_SYMBOL_GPL(sn_cpu_info);
|
||||
|
||||
extern void pcibr_setup(cnodeid_t);
|
||||
|
||||
extern void xtalk_probe_node(cnodeid_t nid);
|
||||
|
||||
static void per_hub_init(cnodeid_t cnode)
|
||||
{
|
||||
struct hub_data *hub = hub_data(cnode);
|
||||
@@ -71,7 +69,6 @@ static void per_hub_init(cnodeid_t cnode)
|
||||
REMOTE_HUB_S(nasid, IIO_ICTO, 0xff);
|
||||
|
||||
hub_rtc_init(cnode);
|
||||
xtalk_probe_node(cnode);
|
||||
|
||||
#ifdef CONFIG_REPLICATE_EXHANDLERS
|
||||
/*
|
||||
|
||||
@@ -99,7 +99,7 @@ static int xbow_probe(nasid_t nasid)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void xtalk_probe_node(cnodeid_t nid)
|
||||
static void xtalk_probe_node(cnodeid_t nid)
|
||||
{
|
||||
volatile u64 hubreg;
|
||||
nasid_t nasid;
|
||||
@@ -133,3 +133,14 @@ void xtalk_probe_node(cnodeid_t nid)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static int __init xtalk_init(void)
|
||||
{
|
||||
cnodeid_t cnode;
|
||||
|
||||
for_each_online_node(cnode)
|
||||
xtalk_probe_node(cnode);
|
||||
|
||||
return 0;
|
||||
}
|
||||
arch_initcall(xtalk_init);
|
||||
Reference in new issue
Block a user