[IA64] Stop bogus NMI & softlockup warnings in ia64 show_mem

When dumping memory via sysrq-m it is possible to take a bogus NMI watchdog
or softlockup watchdog because the dump can take a long time on big memory
systems.

Occasionally tickle the watchdog when doing the dump.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by Prarit Bhargava and committed by Tony Luck 99a19cf1 6e9de181

+6
+3
arch/ia64/mm/contig.c
··· 17 17 #include <linux/bootmem.h> 18 18 #include <linux/efi.h> 19 19 #include <linux/mm.h> 20 + #include <linux/nmi.h> 20 21 #include <linux/swap.h> 21 22 22 23 #include <asm/meminit.h> ··· 57 56 present = pgdat->node_present_pages; 58 57 for(i = 0; i < pgdat->node_spanned_pages; i++) { 59 58 struct page *page; 59 + if (unlikely(i % MAX_ORDER_NR_PAGES == 0)) 60 + touch_nmi_watchdog(); 60 61 if (pfn_valid(pgdat->node_start_pfn + i)) 61 62 page = pfn_to_page(pgdat->node_start_pfn + i); 62 63 else {
+3
arch/ia64/mm/discontig.c
··· 16 16 17 17 #include <linux/kernel.h> 18 18 #include <linux/mm.h> 19 + #include <linux/nmi.h> 19 20 #include <linux/swap.h> 20 21 #include <linux/bootmem.h> 21 22 #include <linux/acpi.h> ··· 534 533 present = pgdat->node_present_pages; 535 534 for(i = 0; i < pgdat->node_spanned_pages; i++) { 536 535 struct page *page; 536 + if (unlikely(i % MAX_ORDER_NR_PAGES == 0)) 537 + touch_nmi_watchdog(); 537 538 if (pfn_valid(pgdat->node_start_pfn + i)) 538 539 page = pfn_to_page(pgdat->node_start_pfn + i); 539 540 else {