Эх сурвалжийг харах

video: driver: Avoid compilation failure due to time.h

Since linux/time.h is not visible in waipio branch, compilation
issue is seen due to usage of timeval structure. Get rid of
timeval struct usage to avoid encountering this issue.

Change-Id: I03ce4f72f97b5e96e4dd495595c60c6835498f66
Signed-off-by: Akshata Sahukar <[email protected]>
Akshata Sahukar 4 жил өмнө
parent
commit
c5262f2e99

+ 0 - 3
driver/vidc/inc/msm_vidc_debug.h

@@ -9,9 +9,6 @@
 #include <linux/debugfs.h>
 #include <linux/delay.h>
 #include <linux/types.h>
-#include <linux/time.h>
-
-void do_gettimeofday(struct timeval *__ddl_tv);
 
 #ifndef VIDC_DBG_LABEL
 #define VIDC_DBG_LABEL "msm_vidc"

+ 2 - 25
driver/vidc/src/msm_vidc_debug.c

@@ -56,32 +56,12 @@ struct core_inst_pair {
 static inline void tic(struct msm_vidc_inst *i, enum profiling_points p,
 				 char *b)
 {
-	struct timeval __ddl_tv;
-
-	if (!i->debug.pdata[p].name[0])
-		memcpy(i->debug.pdata[p].name, b, 64);
-	if ((msm_vidc_debug & VIDC_PERF) &&
-		i->debug.pdata[p].sampling) {
-		do_gettimeofday(&__ddl_tv);
-		i->debug.pdata[p].start =
-			(__ddl_tv.tv_sec * 1000) + (__ddl_tv.tv_usec / 1000);
-			i->debug.pdata[p].sampling = false;
-	}
+	return;
 }
 
 static inline void toc(struct msm_vidc_inst *i, enum profiling_points p)
 {
-	struct timeval __ddl_tv;
-
-	if ((msm_vidc_debug & VIDC_PERF) &&
-		!i->debug.pdata[p].sampling) {
-		do_gettimeofday(&__ddl_tv);
-		i->debug.pdata[p].stop = (__ddl_tv.tv_sec * 1000)
-			+ (__ddl_tv.tv_usec / 1000);
-		i->debug.pdata[p].cumulative += i->debug.pdata[p].stop -
-			i->debug.pdata[p].start;
-		i->debug.pdata[p].sampling = true;
-	}
+	return;
 }
 
 static u32 write_str(char *buffer,
@@ -559,7 +539,4 @@ void msm_vidc_debugfs_update(void *instance,
 	}
 }
 
-void do_gettimeofday(struct timeval *__ddl_tv)
-{
-}