summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2011-11-02 11:12:48 +0800
committerXinyu Chen <xinyu.chen@freescale.com>2011-11-02 11:12:48 +0800
commite15ad54c05023278d0ce57d7c684e1289842989b (patch)
treefde2dfe9fc19b70b579326b88025fc1948850720
parent21a89b9b15e486180c91e4240aa9cbe6cc281c46 (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 049559990f64..0d035a10239b 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] = {
@@ -94,15 +92,6 @@ static int lowmem_shrink(struct shrinker *s, int nr_to_scan, gfp_t gfp_mask)
int array_size = ARRAY_SIZE(lowmem_adj);
int other_free = global_page_state(NR_FREE_PAGES);
int other_file = global_page_state(NR_FILE_PAGES);
- 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