From: Arve Hjønnevåg Date: Mon, 11 May 2009 22:45:09 +0000 (-0700) Subject: Staging: android: lowmemorykiller: Only iterate over process list when needed. X-Git-Tag: v2.6.31-rc1~105^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f501d00144328ca9e0521d159cf80ff5c9d21d77;p=pandora-kernel.git Staging: android: lowmemorykiller: Only iterate over process list when needed. Use NR_ACTIVE plus NR_INACTIVE as a size estimate for our fake cache instead the sum of rss. Neither method is accurate. Also skip the process scan, if the amount of memory available is above the largest threshold set. Signed-off-by: Arve Hjønnevåg Cc: David Rientjes Cc: San Mehat Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed