Re: [PATCH 0/3] perf/core, x86: unify perfctr bitmasks

From: Cyrill Gorcunov
Date: Wed Mar 31 2010 - 12:27:01 EST


On Wed, Mar 31, 2010 at 08:15:23PM +0400, Cyrill Gorcunov wrote:
> On Tue, Mar 30, 2010 at 09:04:00PM +0200, Peter Zijlstra wrote:
> > On Tue, 2010-03-30 at 22:29 +0400, Cyrill Gorcunov wrote:
> [...]
> > >
[...]
> +static inline bool p4_is_odd_cpl(u32 escr)
> +{
> + unsigned int t0 = (escr & P4_ESCR_T0_ANY) << 0;
> + unsigned int t1 = (escr & P4_ESCR_T1_ANY) << 2;
> +
> + if ((t0 ^ t1) != t0)
> + return true;

/me in shame: This is bogus, Peter don't take it yet.

> +
> + return false;
> +}
[...]

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