Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc0a96e6 authored by Satya Durga Srinivasu Prabhala's avatar Satya Durga Srinivasu Prabhala Committed by Gerrit - the friendly Code Review server
Browse files

sysctl: sched: add sched_boost_handler



sched_boost_handler was introduced as part commit 3f083eada363e8f
("sched: Add snapshot of Window Assisted Load Tracking (WALT)"),
but, missed to add to sysctl.

Change-Id: Id6f5dcc076d074fa5665991dd074bdc9251c8255
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent e1ea5a45
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -66,6 +66,9 @@ int sched_proc_update_handler(struct ctl_table *table, int write,
		loff_t *ppos);
#endif

extern int sched_boost_handler(struct ctl_table *table, int write,
			void __user *buffer, size_t *lenp, loff_t *ppos);

/*
 *  control realtime throttling:
 *
+10 −0
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@ static int __maybe_unused neg_one = -1;
static int zero;
static int __maybe_unused one = 1;
static int __maybe_unused two = 2;
static int __maybe_unused three = 3;
static int __maybe_unused four = 4;
static unsigned long one_ul = 1;
static int one_hundred = 100;
@@ -335,6 +336,15 @@ static struct ctl_table kern_table[] = {
		.extra1		= &zero,
		.extra2		= &sysctl_sched_group_upmigrate_pct,
	},
	{
		.procname	= "sched_boost",
		.data		= &sysctl_sched_boost,
		.maxlen		= sizeof(unsigned int),
		.mode		= 0644,
		.proc_handler	= sched_boost_handler,
		.extra1		= &zero,
		.extra2		= &three,
	},
#endif
#ifdef CONFIG_SCHED_DEBUG
	{