From 73a10edb670f88e55c359f2ffe5f81ea42c1b308 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 14 Oct 2016 14:21:56 +1100 Subject: [PATCH 38/80] Remove unused code. --- kernel/sched/MuQSS.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/kernel/sched/MuQSS.c b/kernel/sched/MuQSS.c index b861fd3..99396fc 100644 --- a/kernel/sched/MuQSS.c +++ b/kernel/sched/MuQSS.c @@ -115,7 +115,6 @@ #define ISO_PERIOD (5 * HZ) -#define SCHED_PRIO(p) ((p) + MAX_RT_PRIO) #define STOP_PRIO (MAX_RT_PRIO - 1) /* @@ -1542,23 +1541,6 @@ static inline bool needs_other_cpu(struct task_struct *p, int cpu) return false; } #define cpu_online_map (*(cpumask_t *)cpu_online_mask) -#ifdef CONFIG_HOTPLUG_CPU -/* - * Check to see if there is a task that is affined only to offline CPUs but - * still wants runtime. This happens to kernel threads during suspend/halt and - * disabling of CPUs. - */ -static inline bool online_cpus(struct task_struct *p) -{ - return (likely(cpumask_intersects(&cpu_online_map, &p->cpus_allowed))); -} -#else /* CONFIG_HOTPLUG_CPU */ -/* All available CPUs are always online without hotplug. */ -static inline bool online_cpus(struct task_struct *p) -{ - return true; -} -#endif static void try_preempt(struct task_struct *p, struct rq *this_rq) { -- 2.7.4