mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-29 05:50:28 +09:00
Revert "ANDROID: Sched: Add hooks for scheduler"
This reverts commit 99545883fb as it
causes merge conflicts in 6.0-rc1. If this is still needed after
6.0-rc1 is merged, it can be added back.
Bug: 200103201
Cc: Shaleen Agrawal <shalagra@codeaurora.org>
Cc: Ashay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Icac9db0f219282e3ca6fffd75cb7e36d39c6f433
This commit is contained in:
@@ -86,10 +86,6 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_irqs_enable);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_cpu_cgroup_attach);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_cpu_cgroup_can_attach);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_cpu_cgroup_online);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_sched_fork_init);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_ttwu_cond);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_schedule_bug);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_sched_exec);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ftrace_oops_enter);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ftrace_oops_exit);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ftrace_size_check);
|
||||
|
||||
@@ -131,22 +131,6 @@ DECLARE_RESTRICTED_HOOK(android_rvh_cpu_cgroup_online,
|
||||
TP_PROTO(struct cgroup_subsys_state *css),
|
||||
TP_ARGS(css), 1);
|
||||
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_sched_fork_init,
|
||||
TP_PROTO(struct task_struct *p),
|
||||
TP_ARGS(p), 1);
|
||||
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_ttwu_cond,
|
||||
TP_PROTO(bool *cond),
|
||||
TP_ARGS(cond), 1);
|
||||
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_schedule_bug,
|
||||
TP_PROTO(void *unused),
|
||||
TP_ARGS(unused), 1);
|
||||
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_sched_exec,
|
||||
TP_PROTO(bool *cond),
|
||||
TP_ARGS(cond), 1);
|
||||
|
||||
DECLARE_HOOK(android_vh_build_sched_domains,
|
||||
TP_PROTO(bool has_asym),
|
||||
TP_ARGS(has_asym));
|
||||
|
||||
@@ -3892,12 +3892,7 @@ static inline bool ttwu_queue_cond(int cpu, int wake_flags)
|
||||
|
||||
static bool ttwu_queue_wakelist(struct task_struct *p, int cpu, int wake_flags)
|
||||
{
|
||||
bool cond = false;
|
||||
|
||||
trace_android_rvh_ttwu_cond(&cond);
|
||||
|
||||
if ((sched_feat(TTWU_QUEUE) && ttwu_queue_cond(cpu, wake_flags)) ||
|
||||
cond) {
|
||||
if (sched_feat(TTWU_QUEUE) && ttwu_queue_cond(cpu, wake_flags)) {
|
||||
if (WARN_ON_ONCE(cpu == smp_processor_id()))
|
||||
return false;
|
||||
|
||||
@@ -4369,8 +4364,6 @@ static void __sched_fork(unsigned long clone_flags, struct task_struct *p)
|
||||
p->se.cfs_rq = NULL;
|
||||
#endif
|
||||
|
||||
trace_android_rvh_sched_fork_init(p);
|
||||
|
||||
#ifdef CONFIG_SCHEDSTATS
|
||||
/* Even if schedstat is disabled, there should not be garbage */
|
||||
memset(&p->stats, 0, sizeof(p->stats));
|
||||
@@ -5325,11 +5318,6 @@ void sched_exec(void)
|
||||
struct task_struct *p = current;
|
||||
unsigned long flags;
|
||||
int dest_cpu;
|
||||
bool cond = false;
|
||||
|
||||
trace_android_rvh_sched_exec(&cond);
|
||||
if (cond)
|
||||
return;
|
||||
|
||||
raw_spin_lock_irqsave(&p->pi_lock, flags);
|
||||
dest_cpu = p->sched_class->select_task_rq(p, task_cpu(p), WF_EXEC);
|
||||
@@ -5762,8 +5750,6 @@ static noinline void __schedule_bug(struct task_struct *prev)
|
||||
if (panic_on_warn)
|
||||
panic("scheduling while atomic\n");
|
||||
|
||||
trace_android_rvh_schedule_bug(prev);
|
||||
|
||||
dump_stack();
|
||||
add_taint(TAINT_WARN, LOCKDEP_STILL_OK);
|
||||
}
|
||||
@@ -9891,8 +9877,6 @@ void __might_resched(const char *file, int line, unsigned int offsets)
|
||||
print_preempt_disable_ip(offsets & MIGHT_RESCHED_PREEMPT_MASK,
|
||||
preempt_disable_ip);
|
||||
|
||||
trace_android_rvh_schedule_bug(NULL);
|
||||
|
||||
dump_stack();
|
||||
add_taint(TAINT_WARN, LOCKDEP_STILL_OK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user