summaryrefslogtreecommitdiff
path: root/include/linux/tegra_profiler.h
diff options
context:
space:
mode:
authorIgor Nabirushkin <inabirushkin@nvidia.com>2013-10-05 01:35:23 +0400
committerBharat Nihalani <bnihalani@nvidia.com>2013-10-25 01:11:49 -0700
commit53860cb47fc86a3469e52dbf4477b5a9135ce78b (patch)
treef7b48fd7c9d0303514e45ac51fc040b890a1d129 /include/linux/tegra_profiler.h
parentacebc290502d643dea3832a0811def4ea15748da (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 (cherry picked from commit 9cdf6b4fdb5cf30267a62f8b795eb83ea06d5637) Reviewed-on: http://git-master/r/298707 GVS: Gerrit_Virtual_Submit Tested-by: Maxim Morin <mmorin@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include/linux/tegra_profiler.h')
-rw-r--r--include/linux/tegra_profiler.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/tegra_profiler.h b/include/linux/tegra_profiler.h
index e8f17ad75792..5840ba3a8824 100644
--- a/include/linux/tegra_profiler.h
+++ b/include/linux/tegra_profiler.h
@@ -305,4 +305,33 @@ struct quadd_module_version {
#pragma pack(pop)
+#ifdef CONFIG_TEGRA_PROFILER
+extern void __quadd_task_sched_in(struct task_struct *prev,
+ struct task_struct *task);
+extern void __quadd_task_sched_out(struct task_struct *prev,
+ struct task_struct *next);
+
+static inline void quadd_task_sched_in(struct task_struct *prev,
+ struct task_struct *task)
+{
+ __quadd_task_sched_in(prev, task);
+}
+
+static inline void quadd_task_sched_out(struct task_struct *prev,
+ struct task_struct *next)
+{
+ __quadd_task_sched_out(prev, next);
+}
+#else
+static inline void quadd_task_sched_in(struct task_struct *prev,
+ struct task_struct *task)
+{
+}
+
+static inline void quadd_task_sched_out(struct task_struct *prev,
+ struct task_struct *next)
+{
+}
+#endif
+
#endif /* __TEGRA_PROFILER_H */