[PATCH 2/3] lib: dhry: use ktime_ms_delta() helper

Geert Uytterhoeven posted 3 patches 1 year, 11 months ago
[PATCH 2/3] lib: dhry: use ktime_ms_delta() helper
Posted by Geert Uytterhoeven 1 year, 11 months ago
Use the existing ktime_ms_delta() helper instead of open-coding the same
operation.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 lib/dhry_1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dhry_1.c b/lib/dhry_1.c
index 08edbbb19f573ff7..ca6c87232c580954 100644
--- a/lib/dhry_1.c
+++ b/lib/dhry_1.c
@@ -277,7 +277,7 @@ int dhry(int n)
 	dhry_assert_string_eq(Str_1_Loc, "DHRYSTONE PROGRAM, 1'ST STRING");
 	dhry_assert_string_eq(Str_2_Loc, "DHRYSTONE PROGRAM, 2'ND STRING");
 
-	User_Time = ktime_to_ms(ktime_sub(End_Time, Begin_Time));
+	User_Time = ktime_ms_delta(End_Time, Begin_Time);
 
 	kfree(Ptr_Glob);
 	kfree(Next_Ptr_Glob);
-- 
2.34.1