summaryrefslogtreecommitdiff
path: root/kernel/sched/boost.c
diff options
context:
space:
mode:
authorOlav Haugan <ohaugan@codeaurora.org>2017-02-01 17:59:51 -0800
committerOlav Haugan <ohaugan@codeaurora.org>2017-02-02 10:23:08 -0800
commit475820b5bcfa8e8cc266db079df6cb2ee4d4d600 (patch)
tree146e6c7bd84cb8aaf455e34873bc7279323ca5eb /kernel/sched/boost.c
parentaf883d4db0b398542bb561808a11019f0998d129 (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.c9
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;