diff options
author | Daniel Walker <dwalker@fifo99.com> | 2009-07-05 09:32:43 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:26 -0700 |
commit | edd540ea92954f896bfb7ee0ebf5dfdde6e6cb41 (patch) | |
tree | ca9157fbf41971c1c2cd6af5966501f84879a01d /drivers/staging | |
parent | 707636ff4bd4057b8fb9c1e6cc68885014623b17 (diff) | |
download | op-kernel-dev-edd540ea92954f896bfb7ee0ebf5dfdde6e6cb41.zip op-kernel-dev-edd540ea92954f896bfb7ee0ebf5dfdde6e6cb41.tar.gz |
Staging: android: lowmemorykiller: remove a predefine
I moved the struct shrinker down so that the predefine isn't needed.
Signed-off-by: Daniel Walker <dwalker@fifo99.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/android/lowmemorykiller.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c index f934393..fb066a3 100644 --- a/drivers/staging/android/lowmemorykiller.c +++ b/drivers/staging/android/lowmemorykiller.c @@ -19,12 +19,6 @@ #include <linux/oom.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 int lowmem_adj[6] = { 0, @@ -140,6 +134,11 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask) return rem; } +static struct shrinker lowmem_shrinker = { + .shrink = lowmem_shrink, + .seeks = DEFAULT_SEEKS * 16 +}; + static int __init lowmem_init(void) { register_shrinker(&lowmem_shrinker); |