summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-10-06 19:45:50 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-06 19:45:49 -0700
commit9a87b7449d33f565ea0f99864e4afb80eeba1c03 (patch)
tree72b22bb9c6749064cbe30cfec5aa5253f115917a /include
parentda994453a242d05fc86a913ccafb886e7e1334b8 (diff)
parent754a1227925ca988797de9d56b16c7c1616418c6 (diff)
Merge "sched/tune: add sysctl interface to define a boost value"
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched/sysctl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h
index 861f715a673d..9fe71c774543 100644
--- a/include/linux/sched/sysctl.h
+++ b/include/linux/sched/sysctl.h
@@ -121,6 +121,22 @@ extern int sysctl_sched_rt_runtime;
extern unsigned int sysctl_sched_cfs_bandwidth_slice;
#endif
+#ifdef CONFIG_SCHED_TUNE
+extern unsigned int sysctl_sched_cfs_boost;
+int sysctl_sched_cfs_boost_handler(struct ctl_table *table, int write,
+ void __user *buffer, size_t *length,
+ loff_t *ppos);
+static inline unsigned int get_sysctl_sched_cfs_boost(void)
+{
+ return sysctl_sched_cfs_boost;
+}
+#else
+static inline unsigned int get_sysctl_sched_cfs_boost(void)
+{
+ return 0;
+}
+#endif
+
#ifdef CONFIG_SCHED_AUTOGROUP
extern unsigned int sysctl_sched_autogroup_enabled;
#endif