Skip to content

Commit b8d1b82

Browse files
geertuakpm00
authored andcommitted
lib: dhry: use ktime_ms_delta() helper
Use the existing ktime_ms_delta() helper instead of open-coding the same operation. Link: https://lkml.kernel.org/r/bb43c67a7580de6152f5e6eb225071166d33b6e4.1705934853.git.geert+renesas@glider.be Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent c3c6c20 commit b8d1b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dhry_1.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ int dhry(int n)
277277
dhry_assert_string_eq(Str_1_Loc, "DHRYSTONE PROGRAM, 1'ST STRING");
278278
dhry_assert_string_eq(Str_2_Loc, "DHRYSTONE PROGRAM, 2'ND STRING");
279279

280-
User_Time = ktime_to_ms(ktime_sub(End_Time, Begin_Time));
280+
User_Time = ktime_ms_delta(End_Time, Begin_Time);
281281

282282
kfree(Ptr_Glob);
283283
kfree(Next_Ptr_Glob);

0 commit comments

Comments
 (0)