|
@@ -179,9 +179,13 @@ static void cosm_set_crashed(struct cosm_device *cdev)
|
|
static void cosm_send_time(struct cosm_device *cdev)
|
|
static void cosm_send_time(struct cosm_device *cdev)
|
|
{
|
|
{
|
|
struct cosm_msg msg = { .id = COSM_MSG_SYNC_TIME };
|
|
struct cosm_msg msg = { .id = COSM_MSG_SYNC_TIME };
|
|
|
|
+ struct timespec64 ts;
|
|
int rc;
|
|
int rc;
|
|
|
|
|
|
- getnstimeofday64(&msg.timespec);
|
|
|
|
|
|
+ ktime_get_real_ts64(&ts);
|
|
|
|
+ msg.timespec.tv_sec = ts.tv_sec;
|
|
|
|
+ msg.timespec.tv_nsec = ts.tv_nsec;
|
|
|
|
+
|
|
rc = scif_send(cdev->epd, &msg, sizeof(msg), SCIF_SEND_BLOCK);
|
|
rc = scif_send(cdev->epd, &msg, sizeof(msg), SCIF_SEND_BLOCK);
|
|
if (rc < 0)
|
|
if (rc < 0)
|
|
dev_err(&cdev->dev, "%s %d scif_send failed rc %d\n",
|
|
dev_err(&cdev->dev, "%s %d scif_send failed rc %d\n",
|