mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
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 <rickyiu@google.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user