diff options
author | Igor Nabirushkin <inabirushkin@nvidia.com> | 2013-10-05 01:35:23 +0400 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-10-10 19:28:35 -0700 |
commit | 9cdf6b4fdb5cf30267a62f8b795eb83ea06d5637 (patch) | |
tree | 9ac7b50713edbb1c44032211ebabe3ef8d798cbf /kernel/sched | |
parent | 5d0f7164f4b3e7690cc174fdeb4873453d3e99f0 (diff) |
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 <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/281941
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Eric Miao <emiao@nvidia.com>
Tested-by: Eric Miao <emiao@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <linux/slab.h> #include <linux/init_task.h> #include <linux/binfmts.h> +#include <linux/tegra_profiler.h> #include <asm/switch_to.h> #include <asm/tlb.h> @@ -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 */ |