From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754455AbZG1PIN (ORCPT ); Tue, 28 Jul 2009 11:08:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754434AbZG1PIL (ORCPT ); Tue, 28 Jul 2009 11:08:11 -0400 Received: from sg2ehsobe005.messaging.microsoft.com ([207.46.51.79]:23062 "EHLO SG2EHSOBE005.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754268AbZG1PG7 (ORCPT ); Tue, 28 Jul 2009 11:06:59 -0400 X-SpamScore: 3 X-BigFish: VPS3(zzzz1202hzzz32i203h43j63h) X-Spam-TCS-SCL: 2:0 X-WSS-ID: 0KNHZAP-02-6PA-02 X-M-MSG: From: Borislav Petkov To: , , , , CC: , , Andreas Herrmann Subject: [PATCH 05/20] x86: mcheck: make use of cpu_node_mask instead of cpu_core_mask to support multi-node processors Date: Tue, 28 Jul 2009 17:06:05 +0200 Message-ID: <1248793580-29899-6-git-send-email-borislav.petkov@amd.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1248793580-29899-1-git-send-email-borislav.petkov@amd.com> References: <1248793580-29899-1-git-send-email-borislav.petkov@amd.com> X-OriginalArrivalTime: 28 Jul 2009 15:06:24.0691 (UTC) FILETIME=[F9608830:01CA0F94] MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andreas Herrmann This fixes threshold_bank4 support. We need to create symlinks for sibling shared banks to first core of each internal node and not to first core of one internal node. Signed-off-by: Andreas Herrmann --- arch/x86/kernel/cpu/mcheck/mce_amd.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd.c b/arch/x86/kernel/cpu/mcheck/mce_amd.c index ddae216..595cbe5 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_amd.c +++ b/arch/x86/kernel/cpu/mcheck/mce_amd.c @@ -494,7 +494,7 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank) #ifdef CONFIG_SMP if (cpu_data(cpu).cpu_core_id && shared_bank[bank]) { /* symlink */ - i = cpumask_first(cpu_core_mask(cpu)); + i = cpumask_first(cpu_node_mask(cpu)); /* first core not up yet */ if (cpu_data(i).cpu_core_id) @@ -514,7 +514,7 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank) if (err) goto out; - cpumask_copy(b->cpus, cpu_core_mask(cpu)); + cpumask_copy(b->cpus, cpu_node_mask(cpu)); per_cpu(threshold_banks, cpu)[bank] = b; goto out; @@ -539,7 +539,7 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank) #ifndef CONFIG_SMP cpumask_setall(b->cpus); #else - cpumask_copy(b->cpus, cpu_core_mask(cpu)); + cpumask_copy(b->cpus, cpu_node_mask(cpu)); #endif per_cpu(threshold_banks, cpu)[bank] = b; -- 1.6.3.3