ANDROID: sched: Add export symbols for sched features

Export symbols needed to implement vendor scheduler value-adds to modify
sched features dynamically at runtime, such as disabling TTWU_QUEUE.

Bug: 177050087
Change-Id: Ibe14d2019403be68b7ceeee47425b2473ccb51fe
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
This commit is contained in:
Shaleen Agrawal
2021-01-08 12:52:41 -08:00
committed by Carlos Llamas
parent 4cdd5274cc
commit 5cfe879a2a
3 changed files with 5 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ EXPORT_SYMBOL_GPL(runqueues);
const_debug unsigned int sysctl_sched_features =
#include "features.h"
0;
EXPORT_SYMBOL_GPL(sysctl_sched_features);
#undef SCHED_FEAT
/*

View File

@@ -48,9 +48,10 @@ static unsigned long nsec_low(unsigned long long nsec)
#define SCHED_FEAT(name, enabled) \
#name ,
static const char * const sched_feat_names[] = {
const char * const sched_feat_names[] = {
#include "features.h"
};
EXPORT_SYMBOL_GPL(sched_feat_names);
#undef SCHED_FEAT

View File

@@ -1985,6 +1985,8 @@ static __always_inline bool static_branch_##name(struct static_key *key) \
#undef SCHED_FEAT
extern struct static_key sched_feat_keys[__SCHED_FEAT_NR];
extern const char * const sched_feat_names[__SCHED_FEAT_NR];
#define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x]))
#else /* !CONFIG_JUMP_LABEL */