summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2024-01-22 15:50:44 +0100
committerAndrew Morton <akpm@linux-foundation.org>2024-02-22 15:38:52 -0800
commitb8d1b82837f342969b96c6ee6c4fde5e9ea02974 (patch)
tree2b995b5072a9dd71f1dcd67516d25a573411360c /lib
parentc3c6c204823859037c24507420ed83947fe506f1 (diff)
downloadlinux-stable-b8d1b82837f342969b96c6ee6c4fde5e9ea02974.tar.gz
linux-stable-b8d1b82837f342969b96c6ee6c4fde5e9ea02974.tar.bz2
linux-stable-b8d1b82837f342969b96c6ee6c4fde5e9ea02974.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/dhry_1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dhry_1.c b/lib/dhry_1.c
index 08edbbb19f57..ca6c87232c58 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);