mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-25 19:10:23 +00:00
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:
parent
58fc3be5fc
commit
4b290a1757
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user