Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2890255 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

i386: speedup touch_nmi_watchdog



Avoid dirtying remote cpu's memory if it already has the correct value.

Cc: Andi Kleen <ak@suse.de>
Cc: Konrad Rzeszutek <konrad@darnok.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1c978b93
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -304,9 +304,11 @@ void touch_nmi_watchdog (void)
		 * Just reset the alert counters, (other CPUs might be
		 * spinning on locks we hold):
		 */
		for_each_present_cpu (cpu)
		for_each_present_cpu(cpu) {
			if (alert_counter[cpu])
				alert_counter[cpu] = 0;
		}
	}

	/*
	 * Tickle the softlockup detector too: