dect
/
linux-2.6
Archived
13
0
Fork 0

ARM: 6621/1: bitops: remove condition code clobber for CLZ

The CLZ instruction does not alter the condition flags, so remove the
"cc" clobber from the inline asm for fls().

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Rabin Vincent 2011-01-12 14:38:52 +01:00 committed by Russell King
parent 22eeb8f6e0
commit e163d529ad
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ static inline int fls(int x)
if (__builtin_constant_p(x))
return constant_fls(x);
asm("clz\t%0, %1" : "=r" (ret) : "r" (x) : "cc");
asm("clz\t%0, %1" : "=r" (ret) : "r" (x));
ret = 32 - ret;
return ret;
}