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

Commit d3bc2367 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds
Browse files

vmstat: update comment regarding stat_threshold

parent 9f6ae448
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -321,9 +321,12 @@ static inline void mod_state(struct zone *zone,
		/*
		 * The fetching of the stat_threshold is racy. We may apply
		 * a counter threshold to the wrong the cpu if we get
		 * rescheduled while executing here. However, the following
		 * will apply the threshold again and therefore bring the
		 * counter under the threshold.
		 * rescheduled while executing here. However, the next
		 * counter update will apply the threshold again and
		 * therefore bring the counter under the threshold again.
		 *
		 * Most of the time the thresholds are the same anyways
		 * for all cpus in a zone.
		 */
		t = this_cpu_read(pcp->stat_threshold);