From 4d6d9aa155cb831f3ba4e66dd140f644f556a8a3 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Date: Wed, 2 May 2007 19:27:11 +0200 Subject: [PATCH] --- yaml --- r: 53820 b: refs/heads/master c: ae32b1297a77c23fd0badd642bb685062f7a37f8 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/x86_64/mm/init.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 68dcac1803b1..d49ffdc63a73 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c8118c6c07f2edfd697aaa0b93e08c3b65a5a675 +refs/heads/master: ae32b1297a77c23fd0badd642bb685062f7a37f8 diff --git a/trunk/arch/x86_64/mm/init.c b/trunk/arch/x86_64/mm/init.c index e3134bc9a4fc..282b0a8f00ad 100644 --- a/trunk/arch/x86_64/mm/init.c +++ b/trunk/arch/x86_64/mm/init.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -73,6 +74,11 @@ void show_mem(void) for_each_online_pgdat(pgdat) { for (i = 0; i < pgdat->node_spanned_pages; ++i) { + /* this loop can take a while with 256 GB and 4k pages + so update the NMI watchdog */ + if (unlikely(i % MAX_ORDER_NR_PAGES == 0)) { + touch_nmi_watchdog(); + } page = pfn_to_page(pgdat->node_start_pfn + i); total++; if (PageReserved(page))