]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/kexec_core.c
kexec: add cond_resched into kimage_alloc_crash_control_pages
[karo-tx-linux.git] / kernel / kexec_core.c
index 5616755895119bef0d69066c4c33f60ffa3afcc8..5617cc41244446f6b3065922bf0a0147c3b61394 100644 (file)
@@ -441,6 +441,8 @@ static struct page *kimage_alloc_crash_control_pages(struct kimage *image,
        while (hole_end <= crashk_res.end) {
                unsigned long i;
 
+               cond_resched();
+
                if (hole_end > KEXEC_CRASH_CONTROL_MEMORY_LIMIT)
                        break;
                /* See if I overlap any of the segments */
@@ -1467,9 +1469,6 @@ static int __init crash_save_vmcoreinfo_init(void)
 #endif
        VMCOREINFO_NUMBER(PG_head_mask);
        VMCOREINFO_NUMBER(PAGE_BUDDY_MAPCOUNT_VALUE);
-#ifdef CONFIG_X86
-       VMCOREINFO_NUMBER(KERNEL_IMAGE_SIZE);
-#endif
 #ifdef CONFIG_HUGETLB_PAGE
        VMCOREINFO_NUMBER(HUGETLB_PAGE_DTOR);
 #endif