From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753934Ab0KHMUW (ORCPT ); Mon, 8 Nov 2010 07:20:22 -0500 Received: from one.firstfloor.org ([213.235.205.2]:54841 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753845Ab0KHMUT (ORCPT ); Mon, 8 Nov 2010 07:20:19 -0500 From: Andi Kleen To: Lin Ming Cc: Peter Zijlstra , Ingo Molnar , Frederic Weisbecker , Arjan van de Ven , Stephane Eranian , robert.richter@amd.com, Cyrill Gorcunov , paulus@samba.org, Thomas Gleixner , "H. Peter Anvin" , Corey Ashford , lkml Subject: Re: [DRAFT PATCH 2/3] perf: Implement Nehalem uncore pmu References: <1288682905.12061.109.camel@minggr.sh.intel.com> Date: Mon, 08 Nov 2010 13:20:13 +0100 In-Reply-To: <1288682905.12061.109.camel@minggr.sh.intel.com> (Lin Ming's message of "Tue, 02 Nov 2010 15:28:25 +0800") Message-ID: <87vd48qa6a.fsf@basil.nowhere.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lin Ming writes: Looking at a an old patch. > + > +static void uncore_pmu_disable_events(void) > +{ > + struct uncore_cpu_hw_events *cpuc = &__get_cpu_var(uncore_cpu_hw_events); > + int node = numa_node_id(); Using numa_node_id() here implies this can't be used when NUMA is turned off. Better use the package id. -Andi -- ak@linux.intel.com -- Speaking for myself only.