[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110518212054.GC28476@elte.hu>
Date: Wed, 18 May 2011 23:20:54 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Robert Richter <robert.richter@....com>,
Stephane Eranian <eranian@...gle.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] perf, x86: Fix event scheduler for constraints with
overlapping counters
* Peter Zijlstra <peterz@...radead.org> wrote:
> > if (c->weight != w)
> > continue;
> >
> > - for_each_set_bit(j, c->idxmsk, X86_PMC_IDX_MAX) {
> > - if (!test_bit(j, used_mask))
> > + /* for each bit in idxmsk starting from idx */
> > + while (idx < X86_PMC_IDX_MAX) {
> > + idx = find_next_bit(c->idxmsk, X86_PMC_IDX_MAX,
> > + idx);
>
> I'd be mighty tempted to ignore that 80 column rule here ;-)
Please put the body of the loop into a helper function, the function is large
and there are countless col80 uglinesses in it!
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists