]> git.baikalelectronics.ru Git - kernel.git/commit
x86: partial unification of asm-x86/bitops.h
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 30 Jan 2008 12:30:55 +0000 (13:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:30:55 +0000 (13:30 +0100)
commit8a613f8e4b460607647df0d8a52b2945976becad
tree2acf18bdf1cd7ff38f79ea09dd75025aa6f60a65
parent3ce124a18b2b9f955cc35a4af487233bb22ca286
x86: partial unification of asm-x86/bitops.h

This unifies the set/clear/test bit functions of asm/bitops.h.

I have not attempted to merge the bit-finding functions, since they
rely on the machine word size and can't be easily restructured to work
generically without a lot of #ifdefs.  In particular, the 64-bit code
can assume the presence of conditional move instructions, whereas
32-bit needs to be more careful.

The inline assembly for the bit operations has been changed to remove
explicit sizing hints on the instructions, so the assembler will pick
the appropriate instruction forms depending on the architecture and
the context.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/bitops.h
include/asm-x86/bitops_32.h
include/asm-x86/bitops_64.h