summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorArto Merilainen <amerilainen@nvidia.com>2017-12-01 08:26:57 -0500
committerAdeel Raza <araza@nvidia.com>2017-12-05 12:13:16 -0500
commitbdeb2f1104b1e5ee954530305703ce1c6f63d277 (patch)
tree038b4e2f09bf1b8a7dc1815e76998f5223911bf1 /include/linux
parent90afc4fd287cca5887e800dfbfb437a002828ee9 (diff)
video: tegra: host: Rework eventlib events
This change updates eventlib events to follow the requested format: - An event is generated as part of submission - Rather than using "START" in the event identifier, the code uses "BEGIN" Bug 1996639 Change-Id: I5afc31332b0121a2287eda07f77d86304a0ba6ac Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1610037 GVS: Gerrit_Virtual_Submit Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvhost.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/nvhost.h b/include/linux/nvhost.h
index 1496aa13a..63bc56fca 100644
--- a/include/linux/nvhost.h
+++ b/include/linux/nvhost.h
@@ -648,6 +648,12 @@ static inline void nvhost_eventlib_log_task(struct platform_device *pdev,
648 u64 timestamp_end) 648 u64 timestamp_end)
649{ 649{
650} 650}
651
652static inline void nvhost_eventlib_log_submit(struct platform_device *pdev,
653 u32 syncpt_id,
654 u32 syncpt_thresh)
655{
656}
651#else 657#else
652 658
653#ifdef CONFIG_DEBUG_FS 659#ifdef CONFIG_DEBUG_FS
@@ -756,6 +762,10 @@ void nvhost_eventlib_log_task(struct platform_device *pdev,
756 u64 timestamp_start, 762 u64 timestamp_start,
757 u64 timestamp_end); 763 u64 timestamp_end);
758 764
765void nvhost_eventlib_log_submit(struct platform_device *pdev,
766 u32 syncpt_id,
767 u32 syncpt_thresh);
768
759/* public host1x interrupt management APIs */ 769/* public host1x interrupt management APIs */
760int nvhost_intr_register_notifier(struct platform_device *pdev, 770int nvhost_intr_register_notifier(struct platform_device *pdev,
761 u32 id, u32 thresh, 771 u32 id, u32 thresh,