Skip to contentSkip to conversation

tee: replace getnstimeofday64() with ktime_get_real_ts64()

PATCH In review Arnd Bergmann 2 participants 4 messages Jun 18, 2018 – Jun 19, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tee: replace getnstimeofday64() with ktime_get_real_ts64()

The two do the same thing, but we want to have a consistent naming in the kernel.

---
 drivers/tee/optee/rpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tee/optee/rpc.c +1 -1
index 41aea12e2bcc..b45c73dd37a5 100644
@@ -48,7 +48,7 @@ static void handle_rpc_func_cmd_get_time(struct optee_msg_arg *arg)
 			OPTEE_MSG_ATTR_TYPE_VALUE_OUTPUT)
 		goto bad;
 
-	getnstimeofday64(&ts);
+	ktime_get_real_ts64(&ts);
 	arg->params[0].u.value.a = ts.tv_sec;
 	arg->params[0].u.value.b = ts.tv_nsec;
 
Signature · 1 line
2.9.0
Acked-by on v1 1/1
#1 lore raw
Quoted 24 lines · Arnd Bergmann

The two do the same thing, but we want to have a consistent naming in the kernel.

---
 drivers/tee/optee/rpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tee/optee/rpc.c +1 -1
index 41aea12e2bcc..b45c73dd37a5 100644
@@ -48,7 +48,7 @@ static void handle_rpc_func_cmd_get_time(struct optee_msg_arg *arg)
 			OPTEE_MSG_ATTR_TYPE_VALUE_OUTPUT)
 		goto bad;
 
-	getnstimeofday64(&ts);
+	ktime_get_real_ts64(&ts);
 	arg->params[0].u.value.a = ts.tv_sec;
 	arg->params[0].u.value.b = ts.tv_nsec;
 
Signature · 1 line
2.9.0

Looks good.

Thanks,
Jens

#2 lore raw
Quoted 22 lines · Jens Wiklander
Quoted 21 lines · Arnd Bergmann

The two do the same thing, but we want to have a consistent naming in the kernel.

---
 drivers/tee/optee/rpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tee/optee/rpc.c +1 -1
index 41aea12e2bcc..b45c73dd37a5 100644
@@ -48,7 +48,7 @@ static void handle_rpc_func_cmd_get_time(struct optee_msg_arg *arg)
                      OPTEE_MSG_ATTR_TYPE_VALUE_OUTPUT)
              goto bad;
 
-     getnstimeofday64(&ts);
+     ktime_get_real_ts64(&ts);
      arg->params[0].u.value.a = ts.tv_sec;
      arg->params[0].u.value.b = ts.tv_nsec;
 
Quoted 7 lines
Quoted 3 lines

--
2.9.0

Looks good.

Thanks for the review. Can you pick it up in your tree?

Arnd

#3 lore raw
Quoted 30 lines · Arnd Bergmann
Quoted 28 lines · Jens Wiklander
Quoted 22 lines · Arnd Bergmann

The two do the same thing, but we want to have a consistent naming in the kernel.

---
 drivers/tee/optee/rpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tee/optee/rpc.c +1 -2
index 41aea12e2bcc..b45c73dd37a5 100644
@@ -48,7 +48,7 @@ static void handle_rpc_func_cmd_get_time(struct optee_msg_arg *arg)
                      OPTEE_MSG_ATTR_TYPE_VALUE_OUTPUT)
              goto bad;
 
-     getnstimeofday64(&ts);
+     ktime_get_real_ts64(&ts);
      arg->params[0].u.value.a = ts.tv_sec;
      arg->params[0].u.value.b = ts.tv_nsec;
 
--
Quoted 2 lines

2.9.0

Looks good.

Quoted 3 lines
Quoted 1 line

Thanks for the review. Can you pick it up in your tree?

OK, I'll pick it up.

Thanks,
Jens