scx_rusty: fix single dom short-circuit

Remove a short-circuit in cpu_to_dom_id that will return domain id 0 for
any input.

This fixes a crash of scx_rusty when running with a single domain and
any CPU is offline.

Signed-off-by: Fredrik Lönnegren <fredrik@frelon.se>
This commit is contained in:
Fredrik Lönnegren 2024-10-03 20:34:18 +02:00
parent 58fc3be5fc
commit 4b290a1757

View File

@ -477,9 +477,6 @@ static u32 cpu_to_dom_id(s32 cpu)
{
const volatile u32 *dom_idp;
if (nr_doms <= 1)
return 0;
dom_idp = MEMBER_VPTR(cpu_dom_id_map, [cpu]);
if (!dom_idp)
return MAX_DOMS;