include <linux/binfmts.h> in signal.c.
.globl ret_from_fork
ret_from_fork:
+#ifdef CONFIG_SMP
bl schedule_tail
+#endif
rlwinm r3,r1,0,0,18
lwz r3,TI_FLAGS(r3)
andi. r0,r3,_TIF_SYSCALL_TRACE
#include <linux/stddef.h>
#include <linux/elf.h>
#include <linux/tty.h>
+#include <linux/binfmts.h>
#include <asm/ucontext.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#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]))
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;
}
/*