1
0
Files
linux/include/linux
Mel Gorman b44129b306 mm: vmstat: use a single setter function and callback for adjusting percpu thresholds
reduce_pgdat_percpu_threshold() and restore_pgdat_percpu_threshold() exist
to adjust the per-cpu vmstat thresholds while kswapd is awake to avoid
errors due to counter drift.  The functions duplicate some code so this
patch replaces them with a single set_pgdat_percpu_threshold() that takes
a callback function to calculate the desired threshold as a parameter.

[akpm@linux-foundation.org: readability tweak]
[kosaki.motohiro@jp.fujitsu.com: set_pgdat_percpu_threshold(): don't use for_each_online_cpu]
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Christoph Lameter <cl@linux.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-13 17:32:31 -08:00
..
2011-01-12 14:37:42 +09:00
2011-01-13 08:03:12 -08:00
2011-01-12 20:16:43 -05:00
2011-01-10 22:11:23 +01:00
2011-01-13 17:32:31 -08:00
2011-01-13 17:32:31 -08:00
2011-01-10 16:05:30 -08:00
2011-01-11 14:17:09 -05:00
2011-01-13 08:03:21 -08:00
2011-01-13 08:03:18 -08:00
2011-01-13 08:03:19 -08:00
2011-01-13 08:03:20 -08:00
2011-01-13 08:03:24 -08:00