Re: [RFC] perf_events: support for uncore a.k.a. nest units

From: Peter Zijlstra
Date: Wed Apr 21 2010 - 05:58:05 EST


On Wed, 2010-04-21 at 17:42 +0800, Lin Ming wrote:
> + /*
> + * TBD: will move this to pmu register function
> + * when multiple hw pmu support is added
> + */
> + pmu.flag = alloc_percpu(u8);
> + if (!pmu.flag)
> + return;

Why not simply use a field in struct cpu_hw_events?

That's where we track all per-cpu pmu state.

--
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/