mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
ANDROID: sched: Add vendor hook to select ilb cpu
Add android_rvh_find_new_ilb to select a next ilb cpu for vendors. Bug: 190228983 Change-Id: Iba1a0cd9cdc22dcf628dd33f8d838fe513a4818f Signed-off-by: Choonghoon Park <choong.park@samsung.com>
This commit is contained in:
committed by
Todd Kjos
parent
1eea1cbdd3
commit
178eea2694
@@ -189,3 +189,4 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_check_mmap_file);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_check_file_open);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_check_bpf_syscall);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_post_init_entity_util_avg);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_find_new_ilb);
|
||||
|
||||
@@ -310,6 +310,10 @@ DECLARE_RESTRICTED_HOOK(android_rvh_post_init_entity_util_avg,
|
||||
TP_PROTO(struct sched_entity *se),
|
||||
TP_ARGS(se), 1);
|
||||
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_find_new_ilb,
|
||||
TP_PROTO(struct cpumask *nohz_idle_cpus_mask, int *ilb),
|
||||
TP_ARGS(nohz_idle_cpus_mask, ilb), 1);
|
||||
|
||||
#endif /* _TRACE_HOOK_SCHED_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
|
||||
@@ -10509,9 +10509,13 @@ static inline int on_null_domain(struct rq *rq)
|
||||
|
||||
static inline int find_new_ilb(void)
|
||||
{
|
||||
int ilb;
|
||||
int ilb = -1;
|
||||
const struct cpumask *hk_mask;
|
||||
|
||||
trace_android_rvh_find_new_ilb(nohz.idle_cpus_mask, &ilb);
|
||||
if (ilb >= 0)
|
||||
return ilb;
|
||||
|
||||
hk_mask = housekeeping_cpumask(HK_FLAG_MISC);
|
||||
|
||||
for_each_cpu_and(ilb, nohz.idle_cpus_mask, hk_mask) {
|
||||
|
||||
Reference in New Issue
Block a user