Merge branches 'acpi-video', 'device-properties', 'pm-sleep' and 'pm-cpuidle'
[cascardo/linux.git] / arch / tile / mm / fault.c
index e83cc99..3f4f58d 100644 (file)
@@ -354,9 +354,9 @@ static int handle_page_fault(struct pt_regs *regs,
 
        /*
         * If we're in an interrupt, have no user context or are running in an
-        * atomic region then we must not take the fault.
+        * region with pagefaults disabled then we must not take the fault.
         */
-       if (in_atomic() || !mm) {
+       if (pagefault_disabled() || !mm) {
                vma = NULL;  /* happy compiler */
                goto bad_area_nosemaphore;
        }