Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188895
b: refs/heads/master
c: 5cfb80a
h: refs/heads/master
i:
  188893: f8dd436
  188891: 277d7d4
  188887: 809d0e7
  188879: 467ecff
  188863: 9449553
v: v3
  • Loading branch information
Daisuke Nishimura authored and Linus Torvalds committed Mar 24, 2010
1 parent f2c3d96 commit 5a8dad1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 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: ae6be51ed01d6c4aaf249a207b4434bc7785853b
refs/heads/master: 5cfb80a73b5a52fb19d8b0611203e4dd58e8e9a2
44 changes: 22 additions & 22 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -3946,28 +3946,6 @@ static int mem_cgroup_do_precharge(unsigned long count)
}
return ret;
}
#else /* !CONFIG_MMU */
static int mem_cgroup_can_attach(struct cgroup_subsys *ss,
struct cgroup *cgroup,
struct task_struct *p,
bool threadgroup)
{
return 0;
}
static void mem_cgroup_cancel_attach(struct cgroup_subsys *ss,
struct cgroup *cgroup,
struct task_struct *p,
bool threadgroup)
{
}
static void mem_cgroup_move_task(struct cgroup_subsys *ss,
struct cgroup *cont,
struct cgroup *old_cont,
struct task_struct *p,
bool threadgroup)
{
}
#endif

/**
* is_target_pte_for_mc - check a pte whether it is valid for move charge
Expand Down Expand Up @@ -4330,6 +4308,28 @@ static void mem_cgroup_move_task(struct cgroup_subsys *ss,
}
mem_cgroup_clear_mc();
}
#else /* !CONFIG_MMU */
static int mem_cgroup_can_attach(struct cgroup_subsys *ss,
struct cgroup *cgroup,
struct task_struct *p,
bool threadgroup)
{
return 0;
}
static void mem_cgroup_cancel_attach(struct cgroup_subsys *ss,
struct cgroup *cgroup,
struct task_struct *p,
bool threadgroup)
{
}
static void mem_cgroup_move_task(struct cgroup_subsys *ss,
struct cgroup *cont,
struct cgroup *old_cont,
struct task_struct *p,
bool threadgroup)
{
}
#endif

struct cgroup_subsys mem_cgroup_subsys = {
.name = "memory",
Expand Down

0 comments on commit 5a8dad1

Please sign in to comment.