> Add a "preferred" file in /sys/devices/system/cpu/ when kernel is
> built with CONFIG_PREFERRED_CPU=y.
> 
> This would help
> - Users to quickly check which CPUs are marked as preferred.
> - Userspace daemons such as irqbalance to use this mask to
>   route irqs into preferred CPUs.
> 
> For example:
> cat /sys/devices/system/cpu/online
> 0-719
> cat /sys/devices/system/cpu/preferred
> 0-599        <<< Implies 0-599 are preferred for workloads and 600-719
>                  should be avoided at this moment.
> 
> cat /sys/devices/system/cpu/preferred
> 0-719        <<< All CPUs are usable. There is no preference.
> 
> Signed-off-by: Shrikanth Hegde <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=5


Reply via email to