Skip to content

Commit

Permalink
sparc: Touch NMI watchdog when walking cpus and calling printk
Browse files Browse the repository at this point in the history
With the increase in number of CPUs calls to functions that dump
output to console (e.g., arch_trigger_all_cpu_backtrace) can take
a long time to complete. If IRQs are disabled eventually the NMI
watchdog kicks in and creates more havoc. Avoid by telling the NMI
watchdog everything is ok.

Signed-off-by: David Ahern <david.ahern@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David Ahern authored and davem330 committed Mar 20, 2015
1 parent b5aff55 commit 31aaa98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/sparc/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ void arch_trigger_all_cpu_backtrace(bool include_self)
printk(" TPC[%lx] O7[%lx] I7[%lx] RPC[%lx]\n",
gp->tpc, gp->o7, gp->i7, gp->rpc);
}

touch_nmi_watchdog();
}

memset(global_cpu_snapshot, 0, sizeof(global_cpu_snapshot));
Expand Down Expand Up @@ -362,6 +364,8 @@ static void pmu_snapshot_all_cpus(void)
(cpu == this_cpu ? '*' : ' '), cpu,
pp->pcr[0], pp->pcr[1], pp->pcr[2], pp->pcr[3],
pp->pic[0], pp->pic[1], pp->pic[2], pp->pic[3]);

touch_nmi_watchdog();
}

memset(global_cpu_snapshot, 0, sizeof(global_cpu_snapshot));
Expand Down

0 comments on commit 31aaa98

Please sign in to comment.