Re: [DRAFT PATCH 2/3] perf: Implement Nehalem uncore pmu

From: Lin Ming
Date: Mon Nov 08 2010 - 23:59:59 EST


On Mon, 2010-11-08 at 20:20 +0800, Andi Kleen wrote:
> Lin Ming <ming.m.lin@xxxxxxxxx> 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.

Right, will fix it with topology_physical_package_id.

Thanks.

>
> -Andi
>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/