From: Andrew Morton Cc: Andi Kleen Cc: Konrad Rzeszutek Signed-off-by: Andrew Morton --- arch/x86_64/mm/init.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff -puN arch/x86_64/mm/init.c~x86_64-inhibit-machine-from-asserting-an-nmi-when-doing-alt-sysrq-m-operation-tidy arch/x86_64/mm/init.c --- a/arch/x86_64/mm/init.c~x86_64-inhibit-machine-from-asserting-an-nmi-when-doing-alt-sysrq-m-operation-tidy +++ a/arch/x86_64/mm/init.c @@ -74,11 +74,12 @@ 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)) { + /* + * 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)) _