[PATCH 2/3] sched/fair: Kill task_set_group_fair()

From: Kirill Tkhai
Date: Tue Feb 21 2017 - 07:10:55 EST


Now this is one-line function, which may be merged into task_change_group_fair().

Signed-off-by: Kirill Tkhai <ktkhai@xxxxxxxxxxxxx>
---
kernel/sched/fair.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 33b46ca301f0..a005bee12e0b 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -9194,11 +9194,6 @@ void init_cfs_rq(struct cfs_rq *cfs_rq)
}

#ifdef CONFIG_FAIR_GROUP_SCHED
-static void task_set_group_fair(struct task_struct *p)
-{
- set_task_rq(p, task_cpu(p));
-}
-
static void task_move_group_fair(struct task_struct *p)
{
detach_task_cfs_rq(p);
@@ -9215,7 +9210,7 @@ static void task_change_group_fair(struct task_struct *p, int type)
{
switch (type) {
case TASK_SET_GROUP:
- task_set_group_fair(p);
+ set_task_rq(p, task_cpu(p));
break;

case TASK_MOVE_GROUP: