Re: [PATCH] jump label: introduce static_branch() interface

From: Andi Kleen
Date: Tue Feb 22 2011 - 18:12:59 EST


> Define:
>
> struct jump_label_key jump_key;
>
> Can be used as:
>
> if (static_branch(&jump_key))
> do unlikely code

Looks much nicer than before indeed. Thanks for this cleanup.

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