[COMMON] sched/rt: Enable config for change sched group
authorJohnlay Park <jonglae.park@samsung.com>
Wed, 28 Feb 2018 03:59:36 +0000 (12:59 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:33:13 +0000 (17:33 +0900)
Change-Id: I3212ac413dbb8dad7e4c89aae1684f65d93e09f9
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
kernel/sched/core.c

index 847bdfbd65f486ecc5dc67d6497c054f2c44156e..b465fb25a7e86cf67c37105d29697925dac395b7 100644 (file)
@@ -6294,7 +6294,7 @@ static void sched_change_group(struct task_struct *tsk, int type)
        tg = autogroup_task_group(tsk, tg);
        tsk->sched_task_group = tg;
 
-#ifdef CONFIG_FAIR_GROUP_SCHED
+#if defined(CONFIG_FAIR_GROUP_SCHED) || defined(CONFIG_RT_GROUP_SCHED)
        if (tsk->sched_class->task_change_group)
                tsk->sched_class->task_change_group(tsk, type);
        else