diff mbox

sched: delete is_same_group outside CONFIG_FAIR_GROUP_SCHED

Message ID 1391005773-29493-1-git-send-email-dietmar.eggemann@arm.com
State Accepted
Commit 27f17580fd2c7514c8f5cce22ab903c6f3ddf458
Headers show

Commit Message

Dietmar Eggemann Jan. 29, 2014, 2:29 p.m. UTC
From: Dietmar Eggemann <dietmar.eggemann@arm.com>

Since is_same_group is only used in group scheduling code, there is
no need to define it outside CONFIG_FAIR_GROUP_SCHED.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
---
 kernel/sched/fair.c |    6 ------
 1 file changed, 6 deletions(-)
diff mbox

Patch

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index e64b0794060e..78b68e89cf77 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -426,12 +426,6 @@  static inline void list_del_leaf_cfs_rq(struct cfs_rq *cfs_rq)
 #define for_each_leaf_cfs_rq(rq, cfs_rq) \
 		for (cfs_rq = &rq->cfs; cfs_rq; cfs_rq = NULL)
 
-static inline int
-is_same_group(struct sched_entity *se, struct sched_entity *pse)
-{
-	return 1;
-}
-
 static inline struct sched_entity *parent_entity(struct sched_entity *se)
 {
 	return NULL;