From ef67750d99e2a666ee18a46aeb0615516845c089 Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Wed, 3 Jan 2024 06:56:23 +0000 Subject: [PATCH] ANDROID: sched: Export symbols for vendor modules Export sysctl_sched_min_granularity and sysctl_sched_idle_min_granularity. In the vendor module, it will use several static function in GKI, while we do not want to export these static functions, which will need to make them not static, we copied them to the vendor module, so we need the export the symbols used in those static functions. For example, sysctl_sched_min_granularity and sysctl_sched_idle_min_granularity are referred in sched_slice(), and they are only used as read-only. Bug: 316276520 Change-Id: I976d0a1f3a70e8e60099e55fdd3cc99a90053fbb Signed-off-by: Rick Yiu --- kernel/sched/fair.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 507d1fc4e163..ac870e416e2a 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -96,6 +96,7 @@ unsigned int sysctl_sched_tunable_scaling = SCHED_TUNABLESCALING_LOG; * (default: 0.75 msec * (1 + ilog(ncpus)), units: nanoseconds) */ unsigned int sysctl_sched_min_granularity = 750000ULL; +EXPORT_SYMBOL_GPL(sysctl_sched_min_granularity); static unsigned int normalized_sysctl_sched_min_granularity = 750000ULL; /* @@ -105,6 +106,7 @@ static unsigned int normalized_sysctl_sched_min_granularity = 750000ULL; * (default: 0.75 msec) */ unsigned int sysctl_sched_idle_min_granularity = 750000ULL; +EXPORT_SYMBOL_GPL(sysctl_sched_idle_min_granularity); /* * This value is kept at sysctl_sched_latency/sysctl_sched_min_granularity