]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.32.10/oprofile-x86-remove-node-check-in-amd-ibs-initialization.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.32.10 / oprofile-x86-remove-node-check-in-amd-ibs-initialization.patch
1 From 89baaaa98a10cad5cc8516c7208b02d9fc711890 Mon Sep 17 00:00:00 2001
2 From: Robert Richter <robert.richter@amd.com>
3 Date: Thu, 28 Jan 2010 16:50:45 +0100
4 Subject: oprofile/x86: remove node check in AMD IBS initialization
5
6 From: Robert Richter <robert.richter@amd.com>
7
8 commit 89baaaa98a10cad5cc8516c7208b02d9fc711890 upstream.
9
10 Standard AMD systems have the same number of nodes as there are
11 northbridge devices. However, there may kernel configurations
12 (especially for 32 bit) or system setups exist, where the node number
13 is different or it can not be detected properly. Thus the check is not
14 reliable and may fail though IBS setup was fine. For this reason it is
15 better to remove the check.
16
17 Signed-off-by: Robert Richter <robert.richter@amd.com>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19
20 ---
21 arch/x86/oprofile/op_model_amd.c | 10 ----------
22 1 file changed, 10 deletions(-)
23
24 --- a/arch/x86/oprofile/op_model_amd.c
25 +++ b/arch/x86/oprofile/op_model_amd.c
26 @@ -386,16 +386,6 @@ static int init_ibs_nmi(void)
27 return 1;
28 }
29
30 -#ifdef CONFIG_NUMA
31 - /* Sanity check */
32 - /* Works only for 64bit with proper numa implementation. */
33 - if (nodes != num_possible_nodes()) {
34 - printk(KERN_DEBUG "Failed to setup CPU node(s) for IBS, "
35 - "found: %d, expected %d",
36 - nodes, num_possible_nodes());
37 - return 1;
38 - }
39 -#endif
40 return 0;
41 }
42