diff options
author | Olav Haugan <ohaugan@codeaurora.org> | 2017-02-01 17:59:51 -0800 |
---|---|---|
committer | Olav Haugan <ohaugan@codeaurora.org> | 2017-02-02 10:23:08 -0800 |
commit | 475820b5bcfa8e8cc266db079df6cb2ee4d4d600 (patch) | |
tree | 146e6c7bd84cb8aaf455e34873bc7279323ca5eb /kernel/sched/boost.c | |
parent | af883d4db0b398542bb561808a11019f0998d129 (diff) |
sched: Remove sched_enable_hmp flag
Clean up the code and make it more maintainable by removing dependency
on the sched_enable_hmp flag. We do not support HMP scheduler without
recompiling. Enabling the HMP scheduler is done through enabling the
CONFIG_SCHED_HMP config.
Change-Id: I246c1b1889f8dcbc8f0a0805077c0ce5d4f083b0
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Diffstat (limited to 'kernel/sched/boost.c')
-rw-r--r-- | kernel/sched/boost.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/sched/boost.c b/kernel/sched/boost.c index fcfda385b74a..5bdd51b1e55e 100644 --- a/kernel/sched/boost.c +++ b/kernel/sched/boost.c @@ -156,9 +156,6 @@ void sched_boost_parse_dt(void) struct device_node *sn; const char *boost_policy; - if (!sched_enable_hmp) - return; - sn = of_find_node_by_path("/sched-hmp"); if (!sn) return; @@ -175,9 +172,6 @@ int sched_set_boost(int type) { int ret = 0; - if (!sched_enable_hmp) - return -EINVAL; - mutex_lock(&boost_mutex); if (verify_boost_params(sysctl_sched_boost, type)) @@ -197,9 +191,6 @@ int sched_boost_handler(struct ctl_table *table, int write, unsigned int *data = (unsigned int *)table->data; unsigned int old_val; - if (!sched_enable_hmp) - return -EINVAL; - mutex_lock(&boost_mutex); old_val = *data; |