From: Prarit Bhargava Date: Wed, 17 Oct 2007 16:04:34 +0000 (+0200) Subject: x86: stop nmi softlockup warnings in show_mem() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=27eb0b288fb3b46350f3e6c2fad0b36937a4cc85;p=openwrt%2Fstaging%2Fblogic.git x86: stop nmi softlockup warnings in 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 Cc: Andi Kleen Signed-off-by: Andrew Morton --- diff --git a/arch/x86/mm/pgtable_32.c b/arch/x86/mm/pgtable_32.c index bbaa2b153934..be61a1d845a4 100644 --- a/arch/x86/mm/pgtable_32.c +++ b/arch/x86/mm/pgtable_32.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -39,6 +40,8 @@ void show_mem(void) for_each_online_pgdat(pgdat) { pgdat_resize_lock(pgdat, &flags); for (i = 0; i < pgdat->node_spanned_pages; ++i) { + if (unlikely(i % MAX_ORDER_NR_PAGES == 0)) + touch_nmi_watchdog(); page = pgdat_page_nr(pgdat, i); total++; if (PageHighMem(page))