@@ -40,9 +40,6 @@ static int numa_enabled = 1;
40
40
41
41
static char * cmdline __initdata ;
42
42
43
- static int numa_debug ;
44
- #define dbg (args ...) if (numa_debug) { printk(KERN_INFO args); }
45
-
46
43
int numa_cpu_lookup_table [NR_CPUS ];
47
44
cpumask_var_t node_to_cpumask_map [MAX_NUMNODES ];
48
45
struct pglist_data * node_data [MAX_NUMNODES ];
@@ -87,7 +84,7 @@ static void __init setup_node_to_cpumask_map(void)
87
84
alloc_bootmem_cpumask_var (& node_to_cpumask_map [node ]);
88
85
89
86
/* cpumask_of_node() will now work */
90
- dbg ("Node to cpumask map for %u nodes\n" , nr_node_ids );
87
+ pr_debug ("Node to cpumask map for %u nodes\n" , nr_node_ids );
91
88
}
92
89
93
90
static int __init fake_numa_create_new_node (unsigned long end_pfn ,
@@ -131,7 +128,7 @@ static int __init fake_numa_create_new_node(unsigned long end_pfn,
131
128
cmdline = p ;
132
129
fake_nid ++ ;
133
130
* nid = fake_nid ;
134
- dbg ("created new fake_node with id %d\n" , fake_nid );
131
+ pr_debug ("created new fake_node with id %d\n" , fake_nid );
135
132
return 1 ;
136
133
}
137
134
return 0 ;
@@ -149,7 +146,7 @@ static void map_cpu_to_node(int cpu, int node)
149
146
{
150
147
update_numa_cpu_lookup_table (cpu , node );
151
148
152
- dbg ("adding cpu %d to node %d\n" , cpu , node );
149
+ pr_debug ("adding cpu %d to node %d\n" , cpu , node );
153
150
154
151
if (!(cpumask_test_cpu (cpu , node_to_cpumask_map [node ])))
155
152
cpumask_set_cpu (cpu , node_to_cpumask_map [node ]);
@@ -160,7 +157,7 @@ static void unmap_cpu_from_node(unsigned long cpu)
160
157
{
161
158
int node = numa_cpu_lookup_table [cpu ];
162
159
163
- dbg ("removing cpu %lu from node %d\n" , cpu , node );
160
+ pr_debug ("removing cpu %lu from node %d\n" , cpu , node );
164
161
165
162
if (cpumask_test_cpu (cpu , node_to_cpumask_map [node ])) {
166
163
cpumask_clear_cpu (cpu , node_to_cpumask_map [node ]);
@@ -450,10 +447,10 @@ static int __init find_primary_domain_index(void)
450
447
if (firmware_has_feature (FW_FEATURE_OPAL )) {
451
448
affinity_form = FORM1_AFFINITY ;
452
449
} else if (firmware_has_feature (FW_FEATURE_FORM2_AFFINITY )) {
453
- dbg ("Using form 2 affinity\n" );
450
+ pr_debug ("Using form 2 affinity\n" );
454
451
affinity_form = FORM2_AFFINITY ;
455
452
} else if (firmware_has_feature (FW_FEATURE_FORM1_AFFINITY )) {
456
- dbg ("Using form 1 affinity\n" );
453
+ pr_debug ("Using form 1 affinity\n" );
457
454
affinity_form = FORM1_AFFINITY ;
458
455
} else
459
456
affinity_form = FORM0_AFFINITY ;
@@ -482,7 +479,7 @@ static int __init find_primary_domain_index(void)
482
479
& distance_ref_points_depth );
483
480
484
481
if (!distance_ref_points ) {
485
- dbg ("NUMA: ibm,associativity-reference-points not found.\n" );
482
+ pr_debug ("NUMA: ibm,associativity-reference-points not found.\n" );
486
483
goto err ;
487
484
}
488
485
@@ -928,7 +925,7 @@ static int __init parse_numa_properties(void)
928
925
return primary_domain_index ;
929
926
}
930
927
931
- dbg ("NUMA associativity depth for CPU/Memory: %d\n" , primary_domain_index );
928
+ pr_debug ("NUMA associativity depth for CPU/Memory: %d\n" , primary_domain_index );
932
929
933
930
/*
934
931
* If it is FORM2 initialize the distance table here.
@@ -1251,9 +1248,6 @@ static int __init early_numa(char *p)
1251
1248
if (strstr (p , "off" ))
1252
1249
numa_enabled = 0 ;
1253
1250
1254
- if (strstr (p , "debug" ))
1255
- numa_debug = 1 ;
1256
-
1257
1251
p = strstr (p , "fake=" );
1258
1252
if (p )
1259
1253
cmdline = p + strlen ("fake=" );
@@ -1416,7 +1410,7 @@ static long vphn_get_associativity(unsigned long cpu,
1416
1410
1417
1411
switch (rc ) {
1418
1412
case H_SUCCESS :
1419
- dbg ("VPHN hcall succeeded. Reset polling...\n" );
1413
+ pr_debug ("VPHN hcall succeeded. Reset polling...\n" );
1420
1414
goto out ;
1421
1415
1422
1416
case H_FUNCTION :
0 commit comments