Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161941
b: refs/heads/master
c: edd540e
h: refs/heads/master
i:
  161939: 8ff4889
v: v3
  • Loading branch information
Daniel Walker authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 5c9cca9 commit 0c21c60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 707636ff4bd4057b8fb9c1e6cc68885014623b17
refs/heads/master: edd540ea92954f896bfb7ee0ebf5dfdde6e6cb41
11 changes: 5 additions & 6 deletions trunk/drivers/staging/android/lowmemorykiller.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0c21c60

Please sign in to comment.