x86: Implement change_bit with immediate operand as "lock xorb"
authorUros Bizjak <ubizjak@gmail.com>
Fri, 24 Oct 2008 14:53:33 +0000 (16:53 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 5 Nov 2008 17:51:02 +0000 (09:51 -0800)
commit838e8bb71dc0c892bf8f84abd3c709d8fe3a8d3c
tree3cae439c32d1e046aba1f0cb6fa81aeed482a91c
parenta376f30a95a796cde81d6dffde0f5243c8bd8f92
x86: Implement change_bit with immediate operand as "lock xorb"

Impact: Minor optimization.

Implement change_bit with immediate bit count as "lock xorb". This is
similar to  "lock orb" and "lock andb"  for set_bit and clear_bit
functions.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/bitops.h