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

Commit 3307b2de authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Satya Durga Srinivasu Prabhala
Browse files

sched: Improve the scheduler



This change is for general scheduler improvement.

Change-Id: Ia43c01e7e368186399b9d021a6761545c7da0c18
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
[satyap@codeaurora.org: fix trivial merge conflict]
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 6cda1dff
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ static void _sched_set_boost(int type)
	case NO_BOOST: /* All boost clear */
		if (boost_refcount[FULL_THROTTLE_BOOST] > 0) {
			core_ctl_set_boost(false);
			walt_enable_frequency_aggregation(false);
			boost_refcount[FULL_THROTTLE_BOOST] = 0;
		}
		if (boost_refcount[CONSERVATIVE_BOOST] > 0) {
@@ -86,6 +87,8 @@ static void _sched_set_boost(int type)
		if (boost_refcount[FULL_THROTTLE_BOOST] == 1) {
			core_ctl_set_boost(true);
			restore_cgroup_boost_settings();
			if (!boost_refcount[RESTRAINED_BOOST])
				walt_enable_frequency_aggregation(true);
		}
		break;

@@ -98,7 +101,8 @@ static void _sched_set_boost(int type)

	case RESTRAINED_BOOST:
	    boost_refcount[RESTRAINED_BOOST]++;
		if (boost_refcount[RESTRAINED_BOOST] == 1)
		if (boost_refcount[RESTRAINED_BOOST] == 1 &&
		    !boost_refcount[FULL_THROTTLE_BOOST])
			walt_enable_frequency_aggregation(true);
		break;

@@ -109,6 +113,9 @@ static void _sched_set_boost(int type)
				core_ctl_set_boost(false);
				if (boost_refcount[CONSERVATIVE_BOOST] >= 1)
					update_cgroup_boost_settings();
				if (!boost_refcount[RESTRAINED_BOOST])
					walt_enable_frequency_aggregation(
								false);
			}
		}
		break;
@@ -124,7 +131,8 @@ static void _sched_set_boost(int type)
	case RESTRAINED_BOOST_DISABLE:
		if (boost_refcount[RESTRAINED_BOOST] >= 1) {
			boost_refcount[RESTRAINED_BOOST]--;
			if (!boost_refcount[RESTRAINED_BOOST])
			if (!boost_refcount[RESTRAINED_BOOST] &&
			    !boost_refcount[FULL_THROTTLE_BOOST])
				walt_enable_frequency_aggregation(false);
		}
		break;