|
@@ -27,6 +27,7 @@
|
|
|
#include <linux/dma-mapping.h>
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/memory_hotplug.h>
|
|
|
+#include <linux/nmi.h>
|
|
|
|
|
|
#include <asm/processor.h>
|
|
|
#include <asm/system.h>
|
|
@@ -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))
|