Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched/core: Remove HK_TYPE_SCHED

The HK_TYPE_SCHED housekeeping type is defined but not set anywhere. So
any code that try to use HK_TYPE_SCHED are essentially dead code. So
remove HK_TYPE_SCHED and any code that use it.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20241030175253.125248-2-longman@redhat.com

authored by

Waiman Long and committed by
Peter Zijlstra
ae5c6777 a76328d4

-16
-1
include/linux/sched/isolation.h
··· 10 10 HK_TYPE_TIMER, 11 11 HK_TYPE_RCU, 12 12 HK_TYPE_MISC, 13 - HK_TYPE_SCHED, 14 13 HK_TYPE_TICK, 15 14 HK_TYPE_DOMAIN, 16 15 HK_TYPE_WQ,
-14
kernel/sched/fair.c
··· 12197 12197 * - When one of the busy CPUs notices that there may be an idle rebalancing 12198 12198 * needed, they will kick the idle load balancer, which then does idle 12199 12199 * load balancing for all the idle CPUs. 12200 - * 12201 - * - HK_TYPE_MISC CPUs are used for this task, because HK_TYPE_SCHED is not set 12202 - * anywhere yet. 12203 12200 */ 12204 12201 static inline int find_new_ilb(void) 12205 12202 { ··· 12441 12444 if (!cpu_active(cpu)) 12442 12445 return; 12443 12446 12444 - /* Spare idle load balancing on CPUs that don't want to be disturbed: */ 12445 - if (!housekeeping_cpu(cpu, HK_TYPE_SCHED)) 12446 - return; 12447 - 12448 12447 /* 12449 12448 * Can be set safely without rq->lock held 12450 12449 * If a clear happens, it will have evaluated last additions because ··· 12659 12666 static void nohz_newidle_balance(struct rq *this_rq) 12660 12667 { 12661 12668 int this_cpu = this_rq->cpu; 12662 - 12663 - /* 12664 - * This CPU doesn't want to be disturbed by scheduler 12665 - * housekeeping 12666 - */ 12667 - if (!housekeeping_cpu(this_cpu, HK_TYPE_SCHED)) 12668 - return; 12669 12669 12670 12670 /* Will wake up very soon. No time for doing anything else*/ 12671 12671 if (this_rq->avg_idle < sysctl_sched_migration_cost)
-1
kernel/sched/isolation.c
··· 12 12 HK_FLAG_TIMER = BIT(HK_TYPE_TIMER), 13 13 HK_FLAG_RCU = BIT(HK_TYPE_RCU), 14 14 HK_FLAG_MISC = BIT(HK_TYPE_MISC), 15 - HK_FLAG_SCHED = BIT(HK_TYPE_SCHED), 16 15 HK_FLAG_TICK = BIT(HK_TYPE_TICK), 17 16 HK_FLAG_DOMAIN = BIT(HK_TYPE_DOMAIN), 18 17 HK_FLAG_WQ = BIT(HK_TYPE_WQ),