summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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 */