From 9cdf6b4fdb5cf30267a62f8b795eb83ea06d5637 Mon Sep 17 00:00:00 2001 From: Igor Nabirushkin Date: Sat, 5 Oct 2013 01:35:23 +0400 Subject: misc: tegra-profiler: kprobes is no longer used Tegra Profiler: kprobes is no longer used Use callbacks from the scheduler instead of kprobes Bug 1343930 Change-Id: I67589dbe972cc5c853addfb6ed82c488529eed55 Signed-off-by: Igor Nabirushkin Reviewed-on: http://git-master/r/281941 Reviewed-by: Daniel Horowitz Reviewed-by: Eric Miao Tested-by: Eric Miao GVS: Gerrit_Virtual_Submit Reviewed-by: Dan Willemsen --- kernel/sched/core.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kernel/sched') diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 8fbbe9cfa1c9..872cf2e019df 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -72,6 +72,7 @@ #include #include #include +#include #include #include @@ -1914,6 +1915,7 @@ prepare_task_switch(struct rq *rq, struct task_struct *prev, { sched_info_switch(prev, next); perf_event_task_sched_out(prev, next); + quadd_task_sched_out(prev, next); fire_sched_out_preempt_notifiers(prev, next); prepare_lock_switch(rq, next); prepare_arch_switch(next); @@ -1960,6 +1962,7 @@ static void finish_task_switch(struct rq *rq, struct task_struct *prev) local_irq_disable(); #endif /* __ARCH_WANT_INTERRUPTS_ON_CTXSW */ perf_event_task_sched_in(prev, current); + quadd_task_sched_in(prev, current); #ifdef __ARCH_WANT_INTERRUPTS_ON_CTXSW local_irq_enable(); #endif /* __ARCH_WANT_INTERRUPTS_ON_CTXSW */ -- cgit v1.2.3