Add stubs for uclamp_boosted() and uclamp_latency_sensitive() to keep
out-of-tree scheduler trees building and working properly.
Fixes: a54c38f4d3 ("Revert "ANDROID: sched: Introduce uclamp latency and boost wrapper"")
Cc: Quentin Perret <qperret@google.com>
Cc: Will McVicker <willmcvicker@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: If1cb6d7964e3a724f3b549bc972df7a2d57d9875
27 lines
651 B
C
27 lines
651 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Android scheduler hooks and modifications
|
|
*
|
|
* Put all of the android-specific scheduler hooks and changes
|
|
* in this .h file to make merges and modifications easier. It's also
|
|
* simpler to notice what is, and is not, an upstream change this way over time.
|
|
*/
|
|
|
|
|
|
/*
|
|
* task_may_not_preempt - check whether a task may not be preemptible soon
|
|
*/
|
|
static inline bool task_may_not_preempt(struct task_struct *task, int cpu)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static inline bool uclamp_boosted(struct task_struct *p)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static inline bool uclamp_latency_sensitive(struct task_struct *p)
|
|
{
|
|
return false;
|
|
}
|