ANDROID: Sched: Add export symbols for sched features

Export symbols needed to implement vendor scheduler value-adds to modify
sched features.

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 Todd Kjos
parent 5ada76d056
commit b92945e2eb
3 changed files with 5 additions and 1 deletions

View File

@ -64,6 +64,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
#endif

View File

@ -50,10 +50,11 @@ 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
static int sched_feat_show(struct seq_file *m, void *v)

View File

@ -1656,6 +1656,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 */