Skip to content

Commit 9094953

Browse files
committed
修改vdso时间更新触发位置
1 parent 98f3bb9 commit 9094953

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/clock.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ void rt_tick_increase(void)
161161
}
162162
#endif
163163
rt_timer_check();
164+
165+
#ifdef RT_USING_VDSO
166+
rt_vdso_sync_clock_data();
167+
#endif
164168
}
165169

166170
/**
@@ -195,10 +199,6 @@ void rt_tick_increase_tick(rt_tick_t tick)
195199
}
196200
#endif
197201
rt_timer_check();
198-
199-
#ifdef RT_USING_VDSO
200-
rt_vdso_sync_clock_data();
201-
#endif
202202
}
203203

204204
/**

0 commit comments

Comments
 (0)