projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3c6c20
)
lib: dhry: use ktime_ms_delta() helper
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Mon, 22 Jan 2024 14:50:44 +0000
(15:50 +0100)
committer
Andrew Morton
<akpm@linux-foundation.org>
Thu, 22 Feb 2024 23:38:52 +0000
(15:38 -0800)
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>
lib/dhry_1.c
patch
|
blob
|
history
diff --git
a/lib/dhry_1.c
b/lib/dhry_1.c
index 08edbbb19f573ff73f3fb339591533f8c707716b..ca6c87232c5809544a03ad0e1e6c22ab78104ccb 100644
(file)
--- 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);