Skip to content

Commit

Permalink
sched: Remove double declaration of root_task_group
Browse files Browse the repository at this point in the history
It's already declared in include/linux/sched.h

Signed-off-by: Li Zefan <lizefan@huawei.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/5135A7D8.7000107@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Mar 6, 2013
1 parent 25cc7da commit 27b4b93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -6861,6 +6861,10 @@ int in_sched_functions(unsigned long addr)
}

#ifdef CONFIG_CGROUP_SCHED
/*
* Default task group.
* Every task in system belongs to this group at bootup.
*/
struct task_group root_task_group;
LIST_HEAD(task_groups);
#endif
Expand Down
5 changes: 0 additions & 5 deletions kernel/sched/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,6 @@ struct task_group {
#define MAX_SHARES (1UL << 18)
#endif

/* Default task group.
* Every task in system belong to this group at bootup.
*/
extern struct task_group root_task_group;

typedef int (*tg_visitor)(struct task_group *, void *);

extern int walk_tg_tree_from(struct task_group *from,
Expand Down

0 comments on commit 27b4b93

Please sign in to comment.