Re: [tip: sched/core] sched/topology: Compute sd_weight considering cpuset partitions
From: K Prateek Nayak
Date: Mon Mar 23 2026 - 22:57:00 EST
Hello Chenyu,
On 3/21/2026 6:18 PM, Chen, Yu C wrote:
>> And more evidence - by default we have:
>>
>> sched_domain size: 296
>> offset of sd_span: 292
>>
>> sizeof() seems to account some sort of 4-byte padding for the struct which
>> pushes the offset of sd->span into the struct size.
>>
>
> In your disassembly for *sd = {...}
>
> mov r2, #296
> mov r0, fp
> mov r1, #0
> ...
> bl memset <-- oops!
Ah! I was not able to see this correctly on Saturday. Thank you for
pointing it out.
--
Thanks and Regards,
Prateek