powerpc/book3s64/hash: Add cond_resched to avoid soft lockup warning
[linux-2.6-block.git] / arch / powerpc / mm / book3s64 / hash_utils.c
index a9d1f72de8484f3c347cfbf35569fcb24edb0602..b30435c7d8042a58ec7e4fdd80c29651048c7cb6 100644 (file)
@@ -316,6 +316,7 @@ repeat:
                if (ret < 0)
                        break;
 
+               cond_resched();
 #ifdef CONFIG_DEBUG_PAGEALLOC
                if (debug_pagealloc_enabled() &&
                        (paddr >> PAGE_SHIFT) < linear_map_hash_count)