1
0
Fork 0

Remove old do_gettimeofday call

5.4-rM2-2.2.x-imx
Anna Boettcher 2021-03-15 10:38:13 -07:00 committed by Alistair Francis
parent 064c838bd2
commit f31f3d3270
1 changed files with 1 additions and 3 deletions

View File

@ -1833,12 +1833,10 @@ int prepare_print_data(char *out_buf, int32_t *in_buf, int index, int data_num)
int save_header(char *out_buf, int index, struct result *result)
{
struct timex txc;
struct rtc_time tm;
char time_buf[100] = {0};
do_gettimeofday(&(txc.time));
rtc_time_to_tm(txc.time.tv_sec, &tm);
tm = rtc_ktime_to_tm(ktime_get_real());
scnprintf(time_buf, 100, "%d/%d/%d,TIME,%d:%d:%d,", tm.tm_year+1900,
tm.tm_mon, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);