From b634ecd65b605a9cf2786fb38dc314c3dad97946 Mon Sep 17 00:00:00 2001 From: Sai Harshini Nimmala Date: Thu, 14 Oct 2021 16:42:26 -0700 Subject: [PATCH] sched/walt: Remove redefinition of 'task_of' function 'task_of' function is defined in sched.h Remove redefinition in walt_cfs.c Change-Id: I07dd511fae0a74a03ebf2ae47f2b227404866972 Signed-off-by: Sai Harshini Nimmala --- kernel/sched/walt/walt_cfs.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kernel/sched/walt/walt_cfs.c b/kernel/sched/walt/walt_cfs.c index 29d262d82549..cd9901232973 100644 --- a/kernel/sched/walt/walt_cfs.c +++ b/kernel/sched/walt/walt_cfs.c @@ -928,11 +928,6 @@ walt_select_task_rq_fair(void *unused, struct task_struct *p, int prev_cpu, *target_cpu = prev_cpu; } -static inline struct task_struct *task_of(struct sched_entity *se) -{ - return container_of(se, struct task_struct, se); -} - static void walt_place_entity(void *unused, struct sched_entity *se, u64 *vruntime) { if (unlikely(walt_disabled))