diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-ppc/mmu_context.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/asm-ppc/mmu_context.h b/include/asm-ppc/mmu_context.h index f6628d78af92..d55284f76c9c 100644 --- a/include/asm-ppc/mmu_context.h +++ b/include/asm-ppc/mmu_context.h @@ -10,10 +10,6 @@ #include <asm/bitops.h> #include <asm/mmu.h> -#if MAX_RT_PRIO != 128 || MAX_PRIO != 168 -# error update this function. -#endif - static inline int sched_find_first_bit(unsigned long *b) { if (unlikely(b[0])) @@ -22,11 +18,9 @@ static inline int sched_find_first_bit(unsigned long *b) return __ffs(b[1]) + 32; if (unlikely(b[2])) return __ffs(b[2]) + 64; - if (unlikely(b[3])) + if (b[3]) return __ffs(b[3]) + 96; - if (b[4]) - return __ffs(b[4]) + 128; - return __ffs(b[5]) + 32 + 128; + return __ffs(b[4]) + 128; } /* |
