Skip to contentSkip to conversation

init-use-ktime_us_delta-to-make-initcall_debug-log-more-precise.patch removed from -mm tree

merged Andrew Morton 1 participant 1 message Mar 25, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The patch titled
Subject: init: use ktime_us_delta() to make initcall_debug log more precise
has been removed from the -mm tree. Its filename was
init-use-ktime_us_delta-to-make-initcall_debug-log-more-precise.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Mark-PK Tsai <[email protected]>
Subject: init: use ktime_us_delta() to make initcall_debug log more precise

Use ktime_us_delta() to make the initcall_debug log more precise than right shifting the result of ktime_to_ns() by 10 bits.

Cc Steven Rostedt <[email protected]>
Cc Matthias Brugger <[email protected]>
Cc Masami Hiramatsu <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Kefeng Wang <[email protected]>
Cc Rasmus Villemoes <[email protected]>
Cc Kees Cook <[email protected]>
Cc Valentin Schneider <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc YJ Chiang <[email protected]>

---

 init/main.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
init/main.c renamed from init/main.c~init-use-ktime_us_delta-to-make-initcall_debug-log-more-precise +2 -6
@@ -1246,15 +1246,11 @@ trace_initcall_start_cb(void *data, init
 static __init_or_module void
 trace_initcall_finish_cb(void *data, initcall_t fn, int ret)
 {
-	ktime_t *calltime = (ktime_t *)data;
-	ktime_t delta, rettime;
-	unsigned long long duration;
+	ktime_t rettime, *calltime = (ktime_t *)data;
 
 	rettime = ktime_get();
-	delta = ktime_sub(rettime, *calltime);
-	duration = (unsigned long long) ktime_to_ns(delta) >> 10;
 	printk(KERN_DEBUG "initcall %pS returned %d after %lld usecs\n",
-		 fn, ret, duration);
+		 fn, ret, (unsigned long long)ktime_us_delta(rettime, *calltime));
 }
 
 static ktime_t initcall_calltime;

_

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