Make nvhost_free_syncpt() API as static and remove it from
global header file nvhost.h since this function should
no longer be called directly by any client
nvhost_free_syncpt() will be automatically called once
refcount of syncpoint drops to zero
Bug
1646883
Change-Id: I7511f80bec62f946966c2f0c50c78b1325c3248c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/745619
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
/**
* API to mark in-use syncpt as free
*/
-void nvhost_free_syncpt(u32 id)
+static void nvhost_free_syncpt(u32 id)
{
struct nvhost_master *host = nvhost;
struct nvhost_syncpt *sp = &host->syncpt;
mutex_unlock(&sp->syncpt_mutex);
}
-EXPORT_SYMBOL_GPL(nvhost_free_syncpt);
static void nvhost_reserve_syncpts(struct nvhost_syncpt *sp)
{
u32 nvhost_get_syncpt_host_managed(struct platform_device *pdev,
u32 param);
u32 nvhost_get_syncpt_host_managed_by_name(const char *syncpt_name);
-void nvhost_free_syncpt(u32 id);
void nvhost_syncpt_put_ref_ext(u32 id);
const char *nvhost_syncpt_get_name(struct platform_device *dev, int id);
u32 nvhost_syncpt_incr_max_ext(struct platform_device *dev, u32 id, u32 incrs);