summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2011-12-13 17:43:01 +0800
committerXinyu Chen <xinyu.chen@freescale.com>2011-12-13 21:37:52 +0800
commit2a1e88e44d757f57a9d44611c01172795fdabb07 (patch)
tree95be62923b940e974375a04802028edbfb069401
parent163ce0c87c39bbc5fd3e4187dbc783f806131ac7 (diff)
ENGR00161211-1 lowmem killer: Remove the DMA zone size check
Remove the low memory killer changes due to we want to remove DMA zone. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
-rw-r--r--drivers/staging/android/lowmemorykiller.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c
index 63eae3d2971e..d454fe9a8dca 100644
--- a/drivers/staging/android/lowmemorykiller.c
+++ b/drivers/staging/android/lowmemorykiller.c
@@ -36,8 +36,6 @@
#include <linux/oom.h>
#include <linux/sched.h>
#include <linux/notifier.h>
-#include <linux/nodemask.h>
-#include <linux/vmstat.h>
static uint32_t lowmem_debug_level = 2;
static int lowmem_adj[6] = {
@@ -96,15 +94,6 @@ static int lowmem_shrink(struct shrinker *s, int nr_to_scan, gfp_t gfp_mask)
int other_free = global_page_state(NR_FREE_PAGES);
int other_file = global_page_state(NR_FILE_PAGES) -
global_page_state(NR_SHMEM);
- int node;
-
- for_each_node_state(node, N_HIGH_MEMORY) {
- struct zone *z =
- &NODE_DATA(node)->node_zones[ZONE_DMA];
-
- other_free -= zone_page_state(z, NR_FREE_PAGES);
- other_file -= zone_page_state(z, NR_FILE_PAGES);
- }
/*
* If we already have a death outstanding, then