]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/alpha/mm/fault.c
Merge ../linus
[linux-2.6-omap-h63xx.git] / arch / alpha / mm / fault.c
index 622dabd846800b14fb13c623eff5c61da0ac9cf7..8aa9db834c11551afc1462bf970d2dbc0ab8a157 100644 (file)
@@ -108,7 +108,7 @@ do_page_fault(unsigned long address, unsigned long mmcsr,
 
        /* If we're in an interrupt context, or have no user context,
           we must not take the fault.  */
-       if (!mm || in_interrupt())
+       if (!mm || in_atomic())
                goto no_context;
 
 #ifdef CONFIG_ALPHA_LARGE_VMALLOC
@@ -193,7 +193,7 @@ do_page_fault(unsigned long address, unsigned long mmcsr,
        /* We ran out of memory, or some other thing happened to us that
           made us unable to handle the page fault gracefully.  */
  out_of_memory:
-       if (current->pid == 1) {
+       if (is_init(current)) {
                yield();
                down_read(&mm->mmap_sem);
                goto survive;