summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/nvhost_syncpt.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2012-05-09 15:54:02 +0300
committerSimone Willett <swillett@nvidia.com>2012-05-10 17:20:11 -0700
commit7228c578e4968d29189b5ebae7c285c2ecc5c3ff (patch)
treea812953f682b9586b1a14e048094e9c0d1689d86 /drivers/video/tegra/host/nvhost_syncpt.c
parentc74aee528eb8c0bb018f732d3d1e1c7e692149ad (diff)
video: tegra: host: Add syncpt trace events
Add trace events for updating the syncpt value from hardware, and wait check. Change-Id: If17de153ae36c0665fe0af2f405dfe42f7fcd656 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/101524 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/nvhost_syncpt.c')
-rw-r--r--drivers/video/tegra/host/nvhost_syncpt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/nvhost_syncpt.c b/drivers/video/tegra/host/nvhost_syncpt.c
index d69883ee51b2..59788084e3c2 100644
--- a/drivers/video/tegra/host/nvhost_syncpt.c
+++ b/drivers/video/tegra/host/nvhost_syncpt.c
@@ -21,6 +21,7 @@
#include <linux/nvhost_ioctl.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
+#include <trace/events/nvhost.h>
#include "nvhost_syncpt.h"
#include "nvhost_acm.h"
#include "dev.h"
@@ -70,9 +71,14 @@ void nvhost_syncpt_save(struct nvhost_syncpt *sp)
*/
u32 nvhost_syncpt_update_min(struct nvhost_syncpt *sp, u32 id)
{
+ u32 val;
+
BUG_ON(!syncpt_op(sp).update_min);
- return syncpt_op(sp).update_min(sp, id);
+ val = syncpt_op(sp).update_min(sp, id);
+ trace_nvhost_syncpt_update_min(id, val);
+
+ return val;
}
/**