sched/walt: remove unused can_halt cpu mask

After reviewing, it was determind that the can_halt_mask is no
longer needed. Remove it and cleanup code as appropriate.

Change-Id: I5430e6f3eda505e0f8fe1cedb9fa7b20425f6900
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
This commit is contained in:
Stephen Dickey 2022-01-12 17:39:19 -08:00 committed by Rishabh Bhatnagar
parent 4a7f7c378c
commit 42cb4efdab
2 changed files with 0 additions and 8 deletions

View File

@ -908,10 +908,6 @@ extern struct cpumask __cpu_halt_mask;
#define cpu_halt_mask ((struct cpumask *)&__cpu_halt_mask)
#define cpu_halted(cpu) cpumask_test_cpu((cpu), cpu_halt_mask)
extern struct cpumask __cpu_can_halt_mask;
#define cpu_can_halt_mask ((struct cpumask *)&__cpu_can_halt_mask)
#define cpu_can_halt(cpu) cpumask_test_cpu((cpu), cpu_can_halt_mask)
extern void walt_task_dump(struct task_struct *p);
extern void walt_rq_dump(int cpu);
extern void walt_dump(void);

View File

@ -11,7 +11,6 @@
/* if a cpu is halting */
struct cpumask __cpu_halt_mask;
struct cpumask __cpu_can_halt_mask;
static DEFINE_MUTEX(halt_lock);
@ -337,9 +336,6 @@ EXPORT_SYMBOL(walt_resume_cpus);
void walt_halt_init(void)
{
cpumask_set_cpu(5, cpu_can_halt_mask);
cpumask_set_cpu(6, cpu_can_halt_mask);
cpumask_set_cpu(7, cpu_can_halt_mask);
}
#endif /* CONFIG_HOTPLUG_CPU */