sched: Provide a wake up API without sending freq notifications
authorJunjie Wu <junjiew@codeaurora.org>
Tue, 5 Jan 2016 18:53:30 +0000 (10:53 -0800)
committerDanny Wood <danwood76@gmail.com>
Mon, 8 Apr 2019 09:20:45 +0000 (10:20 +0100)
commitd58d9bb3170a78c5f779a5cccec79525ffd2aef5
treef7356d2150b7ad457f54baf82c97cc18262723d3
parentb42cabcb3cfe54e2e3eb4ab19d932dc55d161461
sched: Provide a wake up API without sending freq notifications

Each time a task wakes up, scheduler evaluates its load and notifies
governor if the resulting frequency of destination CPU is larger than
a threshold. However, some governor wakes up a separate task that
handles frequency change, which again calls wake_up_process().

This is dangerous because if the task being woken up meets the
threshold and ends up being moved around, there is a potential for
endless recursive notifications.

Introduce a new API for waking up a task without triggering
frequency notification.

Change-Id: I24261af81b7dc410c7fb01eaa90920b8d66fbd2a
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
include/linux/sched.h
kernel/sched/core.c
kernel/sched/sched.h