Re: [PATCH v3 04/17] sched/deadline: Do not divide by zero active CPUs of a root domain
From: Mathieu Desnoyers
Date: Thu Nov 19 2026 - 11:05:45 EST
> Can updating dl_b->total_bw when the CPU is inactive underflow
> def_root_domain.dl_bw.total_bw?
Yes, by reading. It is older than this patch. The subtraction from
total_bw is upstream code. This patch only skips the spread over
extra_bw when no CPU is active.
The second series fixes it, in "sched/deadline: Record the root domain
holding a task's bandwidth". With that patch, the timer subtracts the
bandwidth from the root domain recorded with the task. It does so only
if no rebuild dropped the bandwidth since. A rebuild drops the
bandwidth of a task whose recorded CPU is inactive. In your case, the
timer then subtracts nothing.
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com