File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,13 @@ int __init fix_pxm_node_maps(int max_nid)
95
95
int i , j , index = -1 , count = 0 ;
96
96
nodemask_t nodes_to_enable ;
97
97
98
- if (numa_off || srat_disabled () )
98
+ if (numa_off )
99
99
return -1 ;
100
100
101
+ /* no or incomplete node/PXM mapping set, nothing to do */
102
+ if (srat_disabled ())
103
+ return 0 ;
104
+
101
105
/* find fake nodes PXM mapping */
102
106
for (i = 0 ; i < MAX_NUMNODES ; i ++ ) {
103
107
if (node_to_pxm_map [i ] != PXM_INVAL ) {
@@ -117,6 +121,11 @@ int __init fix_pxm_node_maps(int max_nid)
117
121
}
118
122
}
119
123
}
124
+ if (index == -1 ) {
125
+ pr_debug ("No node/PXM mapping has been set\n" );
126
+ /* nothing more to be done */
127
+ return 0 ;
128
+ }
120
129
if (WARN (index != max_nid , "%d max nid when expected %d\n" ,
121
130
index , max_nid ))
122
131
return -1 ;
You can’t perform that action at this time.
0 commit comments