From 7a731216aa470070c548820db54c770fdb272cc7 Mon Sep 17 00:00:00 2001 From: Yihao Wu Date: Fri, 10 Jun 2022 00:01:10 +0800 Subject: [PATCH 1/2] config: add wake_up_idle_ht as an interface function Due to springboard technique, __schedule is divided into two halves. The top half can be seen as an interface function. And the bottom half can be seen as an outsider function. wake_up_idle_ht is called by the outsider half of __schedule. So it should've been infected as an outsider too. But the current sched_boundary algorithm sees __schedule as a whole interface function. So it was wrongly classified as an insider. However the modification won't take effect. What's worse, there maybe two versions of wake_up_idle_ht running in the system. To avoid confusion, and also allow users to modify this it, we add it as an interface function. Signed-off-by: Yihao Wu --- configs/4.19/sched_boundary.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/4.19/sched_boundary.yaml b/configs/4.19/sched_boundary.yaml index e973c06..ef3d90f 100644 --- a/configs/4.19/sched_boundary.yaml +++ b/configs/4.19/sched_boundary.yaml @@ -30,6 +30,7 @@ interface_prefix: - __arm64_compat_sys_ function: interface: + - wake_up_idle_ht - do_set_cpus_allowed - set_user_nice - sched_setscheduler -- Gitee From a445b048a02df43a67c2141a2466b4ba14a1e514 Mon Sep 17 00:00:00 2001 From: Yihao Wu Date: Tue, 14 Jun 2022 14:08:24 +0800 Subject: [PATCH 2/2] config: add __balance_callback as an interface function Same as the previous patch, __balance_callback is called by the bottom half of __schedule. To avoid confusion to users, and also allow users to modify it, we add it as an interface function. Signed-off-by: Yihao Wu --- configs/4.19/sched_boundary.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/4.19/sched_boundary.yaml b/configs/4.19/sched_boundary.yaml index ef3d90f..d93af55 100644 --- a/configs/4.19/sched_boundary.yaml +++ b/configs/4.19/sched_boundary.yaml @@ -31,6 +31,7 @@ interface_prefix: function: interface: - wake_up_idle_ht + - __balance_callback - do_set_cpus_allowed - set_user_nice - sched_setscheduler -- Gitee