Commit edd540ea authored by Daniel Walker's avatar Daniel Walker Committed by Greg Kroah-Hartman

Staging: android: lowmemorykiller: remove a predefine

I moved the struct shrinker down so that the predefine isn't needed.
Signed-off-by: default avatarDaniel Walker <dwalker@fifo99.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 707636ff
...@@ -19,12 +19,6 @@ ...@@ -19,12 +19,6 @@
#include <linux/oom.h> #include <linux/oom.h>
#include <linux/sched.h> #include <linux/sched.h>
static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask);
static struct shrinker lowmem_shrinker = {
.shrink = lowmem_shrink,
.seeks = DEFAULT_SEEKS * 16
};
static uint32_t lowmem_debug_level = 2; static uint32_t lowmem_debug_level = 2;
static int lowmem_adj[6] = { static int lowmem_adj[6] = {
0, 0,
...@@ -140,6 +134,11 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask) ...@@ -140,6 +134,11 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask)
return rem; return rem;
} }
static struct shrinker lowmem_shrinker = {
.shrink = lowmem_shrink,
.seeks = DEFAULT_SEEKS * 16
};
static int __init lowmem_init(void) static int __init lowmem_init(void)
{ {
register_shrinker(&lowmem_shrinker); register_shrinker(&lowmem_shrinker);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment