if ((fpu_swa_count < 4) && !(current->thread.flags & IA64_THREAD_FPEMU_NOPRINT)) {
last_time = jiffies;
++fpu_swa_count;
- printk(KERN_WARNING "%s(%d): floating-point assist fault at ip %016lx, isr %016lx\n",
+ printk(KERN_WARNING
+ "%s(%d): floating-point assist fault at ip %016lx, isr %016lx\n",
current->comm, current->pid, regs->cr_iip + ia64_psr(regs)->ri, isr);
}
* David Mosberger-Tang <davidm@hpl.hp.com>
*/
+#include <linux/compiler.h>
#include <linux/errno.h>
#include <linux/sched.h>
* address TASK_SIZE is never valid. We also need to make sure that the address doesn't
* point inside the virtually mapped linear page table.
*/
-#define __access_ok(addr,size,segment) (((unsigned long) (addr)) <= (segment).seg \
- && ((segment).seg == KERNEL_DS.seg \
- || REGION_OFFSET((unsigned long) (addr)) < RGN_MAP_LIMIT))
+#define __access_ok(addr,size,segment) \
+ likely(((unsigned long) (addr)) <= (segment).seg \
+ && ((segment).seg == KERNEL_DS.seg \
+ || REGION_OFFSET((unsigned long) (addr)) < RGN_MAP_LIMIT))
#define access_ok(type,addr,size) __access_ok((addr),(size),get_fs())
static inline int