ANDROID: sched: add vendor hook in find_new_ilb
Add new vendor hook to find new ilb cpu for power tuning.
We also set ilb initial is -1 by this patch, and we set ilb
as nr_cpu_ids by our vendor when ilb cpu not be found.
If ilb initial is 0, then when hook is not registered,
find ilb will return CPU 0.
But when hook is not registered, it should do for_each_cpu_and()
to find best ilb cpu, instead of return CPU 0 direct.
So we set ilb initial is -1, it means anyone doesn't register the hook
or the registered hook doesn't do anything, instead of ilb cpu not
be found by vendor.
Bug: 264821176
Change-Id: Idb5a8bd5862f7dd1fa30fa99aec3b42214375915
Signed-off-by:
Jing-Ting Wu <Jing-Ting.Wu@mediatek.com>
Loading
Please sign in to comment