x86: clean up alternative.h
commitedc953fa4ebc0265ef3b1754fe116a9fd4264e15
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 28 Apr 2009 15:13:46 +0000 (28 11:13 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 28 Apr 2009 15:42:08 +0000 (28 17:42 +0200)
tree1142b25472b984414fd1b3674888ddde896eeab3
parente25c2c873f59c57cf1c2b1979cc8fb01958305ef
x86: clean up alternative.h

Alternative header duplicates assembly that could be merged in
one single macro.  Merging this into this macro also allows to
directly declare ALTERNATIVE() statements within assembly code.

Uses a __stringify() of the feature bits rather than passing a
"i" operand.  Leave the old %0 operand as-is (set to 0), unused
to stay compatible with API.

(v2: tab alignment fixes)

[ Impact: cleanup ]

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
LKML-Reference: <20090428151346.GA31212@Krystal>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/alternative.h