Re: [PATCH 0/3] Use jump_label for sched_feat()

From: Peter Zijlstra
Date: Tue Dec 06 2011 - 14:15:52 EST


On Tue, 2011-12-06 at 13:10 -0500, Jason Baron wrote:
> On Tue, Dec 06, 2011 at 06:15:34PM +0100, Peter Zijlstra wrote:
> > These patches implement sched_feat() using jump_labels. The first is a section
> > mismatch fix. The second patch provides a little infrastructure and the third
> > patch applies it to make sched_feat() use static_branch().
> >
> > It uses static_branch() coupled with unlikely/likely in order to control the
> > branch block position. I haven't checked if it works, but it likely doesn't,
> > although it should.
> >
> >
>
> It doesn't. I played around with unlikely/likely a bit, and it
> didn't seem to make a difference.

Right, we should look at getting that fixed though.. I think its a very
useful hint to have.

> That said, jump_labels could still be
> an improvement here - it be good if we had some numbers, I guess.

Yeah, acme had some number on an older version of this patch.
--
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/