aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/oprofile
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2010-01-28 10:50:45 -0500
committerRobert Richter <robert.richter@amd.com>2010-02-26 09:14:01 -0500
commit89baaaa98a10cad5cc8516c7208b02d9fc711890 (patch)
treea32069ab0afaa5cc881b66ce3fbdb7e6f1da2bb4 /arch/x86/oprofile
parent013cfc50672bbb638796545231683231647edb07 (diff)
oprofile/x86: remove node check in AMD IBS initialization
Standard AMD systems have the same number of nodes as there are northbridge devices. However, there may kernel configurations (especially for 32 bit) or system setups exist, where the node number is different or it can not be detected properly. Thus the check is not reliable and may fail though IBS setup was fine. For this reason it is better to remove the check. Cc: stable <stable@kernel.org> Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile')
-rw-r--r--arch/x86/oprofile/op_model_amd.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c
index 2b9c68d868ed..4eb30715b1d5 100644
--- a/arch/x86/oprofile/op_model_amd.c
+++ b/arch/x86/oprofile/op_model_amd.c
@@ -389,16 +389,6 @@ static int init_ibs_nmi(void)
389 return 1; 389 return 1;
390 } 390 }
391 391
392#ifdef CONFIG_NUMA
393 /* Sanity check */
394 /* Works only for 64bit with proper numa implementation. */
395 if (nodes != num_possible_nodes()) {
396 printk(KERN_DEBUG "Failed to setup CPU node(s) for IBS, "
397 "found: %d, expected %d",
398 nodes, num_possible_nodes());
399 return 1;
400 }
401#endif
402 return 0; 392 return 0;
403} 393}
404 394