Commit 81ebefd8 authored by Jing-Ting Wu's avatar Jing-Ting Wu Committed by Treehugger Robot
Browse files

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: default avatarJing-Ting Wu <Jing-Ting.Wu@mediatek.com>
parent 272cf01f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment