mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
[PATCH] i386: Don't touch per cpu memory of offline CPUs in touch_nmi_watchdog
Just like on x86-64, don't touch foreign CPUs' memory if the watchdog isn't enabled at all. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
parent
b0bfece40b
commit
c6ea396de6
@ -870,14 +870,16 @@ static unsigned int
|
|||||||
|
|
||||||
void touch_nmi_watchdog (void)
|
void touch_nmi_watchdog (void)
|
||||||
{
|
{
|
||||||
int i;
|
if (nmi_watchdog > 0) {
|
||||||
|
unsigned cpu;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Just reset the alert counters, (other CPUs might be
|
* Just reset the alert counters, (other CPUs might be
|
||||||
* spinning on locks we hold):
|
* spinning on locks we hold):
|
||||||
*/
|
*/
|
||||||
for_each_possible_cpu(i)
|
for_each_present_cpu (cpu)
|
||||||
alert_counter[i] = 0;
|
alert_counter[cpu] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Tickle the softlockup detector too:
|
* Tickle the softlockup detector too:
|
||||||
|
Loading…
Reference in New Issue
Block a user