mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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>
This commit is contained in:
parent
c3c6c20482
commit
b8d1b82837
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user