[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1276173826.2077.252.camel@twins>
Date: Thu, 10 Jun 2010 14:43:46 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Jason Baron <jbaron@...hat.com>
Cc: linux-kernel@...r.kernel.org, mingo@...e.hu,
mathieu.desnoyers@...ymtl.ca, hpa@...or.com, tglx@...utronix.de,
rostedt@...dmis.org, andi@...stfloor.org, roland@...hat.com,
rth@...hat.com, mhiramat@...hat.com, fweisbec@...il.com,
avi@...hat.com, davem@...emloft.net, vgoyal@...hat.com,
sam@...nborg.org
Subject: Re: [PATCH 10/13] jump label v9: convert jump label to use a key
On Wed, 2010-06-09 at 17:39 -0400, Jason Baron wrote:
> -static inline int enable_jump_label(const char *name)
> -{
> - return 0;
> -}
> -
> -static inline int disable_jump_label(const char *name)
> -{
> - return 0;
> -}
> +#define enable_jump_label(key)
> +#define disable_jump_label(key)
I would expect enable_jump_label() to look something like:
#define enable_jump_label(cond_var) \
do { \
*(cond_var) = 1; \
} while (0)
That way the HAVE_JUMP_LABEL and !HAVE_JUMP_LABEL code has similar
effects.
--
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