littlekernel / lk

LK embedded kernel
MIT License
3.17k stars 621 forks source link

[kernel][thread] Wake up only needed cores #266

Closed vishals4gh closed 3 years ago

vishals4gh commented 4 years ago

This change ensures that during thread scheduling only needed cores are woken up as per the thread's CPU affinity rather than all cores. This would avoid un-necessary wakup for other cores from lower power states without having to execute anything.

Signed-off-by: vannapurve vannapurve@google.com

travisg commented 3 years ago

Looks good. Thanks! Sorry it took so long to get to it, been busy with other stuff.