Skip to contentSkip to conversation

lib-dhry-use-ktime_ms_delta-helper.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Feb 22, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib: dhry: use ktime_ms_delta() helper
has been removed from the -mm tree. Its filename was
lib-dhry-use-ktime_ms_delta-helper.patch

This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Geert Uytterhoeven <[email protected]>
Subject: lib: dhry: use ktime_ms_delta() helper
Date: Mon, 22 Jan 2024 15:50:44 +0100

Use the existing ktime_ms_delta() helper instead of open-coding the same operation.

---

 lib/dhry_1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/dhry_1.c renamed from lib/dhry_1.c~lib-dhry-use-ktime_ms_delta-helper +1 -1
@@ -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);

_

Patches currently in -mm which might be from [email protected] are