Skip to content

Commit

Permalink
lib: dhry: use ktime_ms_delta() helper
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
geertu authored and akpm00 committed Feb 22, 2024
1 parent c3c6c20 commit b8d1b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dhry_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b8d1b82

Please sign in to comment.