mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
ANDROID: sched: Export available_idle_cpu
Previously idle_cpu is exported which is used by vendor module to check if a cpu is in idle state, but later we think available_idle_cpu is better than idle_cpu because it also checks vcpu_is_preempted. Bug: 171740453 Change-Id: I17ccc4925650431f334a9eb2bbc94a138ab36ae0 Signed-off-by: Rick Yiu <rickyiu@google.com> Signed-off-by: Will McVicker <willmcvicker@google.com> Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
This commit is contained in:
committed by
Shaleen Agrawal
parent
d29d89c814
commit
e750a0b5ec
@@ -7067,7 +7067,6 @@ int idle_cpu(int cpu)
|
||||
|
||||
return 1;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(idle_cpu);
|
||||
|
||||
/**
|
||||
* available_idle_cpu - is a given CPU idle for enqueuing work.
|
||||
@@ -7085,6 +7084,7 @@ int available_idle_cpu(int cpu)
|
||||
|
||||
return 1;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(available_idle_cpu);
|
||||
|
||||
/**
|
||||
* idle_task - return the idle task for a given CPU.
|
||||
|
||||
Reference in New Issue
Block a user