summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2010-01-28 16:50:45 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-15 09:06:15 -0700
commit0f8bdb7e9b1ea335823bf6ea4c666bbb142d5753 (patch)
tree2582953e22fbf79b791f499f7ee34db4a2b44095 /arch/x86
parent0c802e02fbaa95b9884d4b3ca1b58e2dfa7c4978 (diff)
downloadkernel-crypto-0f8bdb7e9b1ea335823bf6ea4c666bbb142d5753.tar.gz
kernel-crypto-0f8bdb7e9b1ea335823bf6ea4c666bbb142d5753.tar.xz
kernel-crypto-0f8bdb7e9b1ea335823bf6ea4c666bbb142d5753.zip
oprofile/x86: remove node check in AMD IBS initialization
commit 89baaaa98a10cad5cc8516c7208b02d9fc711890 upstream. 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. Signed-off-by: Robert Richter <robert.richter@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/x86')
-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 fa8664a2e10..c6432baa272 100644
--- a/arch/x86/oprofile/op_model_amd.c
+++ b/arch/x86/oprofile/op_model_amd.c
@@ -386,16 +386,6 @@ static int init_ibs_nmi(void)
return 1;
}
-#ifdef CONFIG_NUMA
- /* Sanity check */
- /* Works only for 64bit with proper numa implementation. */
- if (nodes != num_possible_nodes()) {
- printk(KERN_DEBUG "Failed to setup CPU node(s) for IBS, "
- "found: %d, expected %d",
- nodes, num_possible_nodes());
- return 1;
- }
-#endif
return 0;
}