summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/bitops/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/bitops/sched.h')
-rw-r--r--include/asm-generic/bitops/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/bitops/sched.h b/include/asm-generic/bitops/sched.h
index 5ef93a4d009f..815bb0148060 100644
--- a/include/asm-generic/bitops/sched.h
+++ b/include/asm-generic/bitops/sched.h
@@ -15,7 +15,7 @@ static inline int sched_find_first_bit(const unsigned long *b)
#if BITS_PER_LONG == 64
if (unlikely(b[0]))
return __ffs(b[0]);
- if (unlikely(b[1]))
+ if (likely(b[1]))
return __ffs(b[1]) + 64;
return __ffs(b[2]) + 128;
#elif BITS_PER_LONG == 32
OpenPOWER on IntegriCloud