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

Commit 9aa2c45c authored by Joonwoo Park's avatar Joonwoo Park
Browse files

sched: allow select_prev_cpu_us to be set to values greater than 100us



At present sched_select_prev_cpu_us tunable is restricted to values
below 100us.  Fix this unintended restriction.

CRs-Fixed: 972237
Change-Id: I5eaf9f40468805c396328ca1022baef32acf8de0
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 1b1ec93f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -3763,8 +3763,11 @@ int sched_hmp_proc_update_handler(struct ctl_table *table, int write,
			goto done;
		}
		update_min_nice = 1;
	} else {
		/* all tunables other than min_nice are in percentage */
	} else if (data != &sysctl_sched_select_prev_cpu_us) {
		/*
		 * all tunables other than min_nice and prev_cpu_us are
		 * in percentage.
		 */
		if (sysctl_sched_downmigrate_pct >
		    sysctl_sched_upmigrate_pct || *data > 100) {
			*data = old_val;