pkarashchenko commented on a change in pull request #5503:
URL: https://github.com/apache/incubator-nuttx/pull/5503#discussion_r812659175
##########
File path: arch/arm/src/cxd56xx/cxd56_cisif.c
##########
@@ -271,7 +271,7 @@ static uint64_t cisif_get_msec_time(void)
{
struct timespec tp;
- if (clock_gettime(CLOCK_REALTIME, &tp))
+ if (clock_systime_timespec(&tp) == 0)
Review comment:
```suggestion
if (clock_systime_timespec(&tp) < 0)
```
##########
File path: arch/arm/src/lc823450/lc823450_dvfs2.c
##########
@@ -127,7 +127,7 @@ static uint64_t _get_current_time64(void)
{
struct timespec ts;
- clock_gettime(CLOCK_MONOTONIC, &ts);
+ clock_systime_timespec(&ts);
Review comment:
Not related to this change, but just noticed that function is named
`_get_current_time64` and `up_get_current_time` is specified few lines above in
the description
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]