Skip to content

Commit d44ef7e

Browse files
committed
WIP:Fixed the warning
1 parent 695b3e6 commit d44ef7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/lwp/arch/risc-v/common/vdso_data.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <time.h>
1414
#include <vdso_datapage.h>
1515
#include <vdso_data.h>
16-
16+
#include <encoding.h>
1717

1818
void rt_vdso_update_glob_time(void)
1919
{
@@ -29,6 +29,6 @@ void rt_vdso_update_glob_time(void)
2929
vdso_ts = &vdata[CS_HRES_COARSE].basetime[CLOCK_MONOTONIC];
3030
rt_ktime_boottime_get_ns(vdso_ts);
3131

32-
vdata->cycle_last = riscv_cputime_gettime();
32+
vdata->cycle_last = rdtime();
3333
rt_vdso_write_end(vdata);
3434
}

0 commit comments

Comments
 (0)