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

Commit c09decae authored by Rohit Gupta's avatar Rohit Gupta
Browse files

cpufreq: cpu-boost: Handle wakeup hints received for foreground tasks



A previous change modifies the notification conditions in the scheduler
to call the notifier chain even on foreground_thread wakeups for tasks
having load more than a threshold value.

If load_based_syncs is turned OFF then we do not need to perform
cpu boost for wakeup hints for foreground tasks from scheduler

Change-Id: Ifbdd3eccac5c9892dfc3a3c3edbfc0df766478ed
Signed-off-by: default avatarRohit Gupta <rohgup@codeaurora.org>
parent f91de123
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -223,6 +223,9 @@ static int boost_migration_notify(struct notifier_block *nb,
		return NOTIFY_OK;
	}

	if (!load_based_syncs && (mnd->src_cpu == mnd->dest_cpu))
		return NOTIFY_OK;

	if (!boost_ms)
		return NOTIFY_OK;