[coreboot-gerrit] Patch set updated for coreboot: device: Stop and output time in `scan_bus()`
Paul Menzel (paulepanter@users.sourceforge.net)
gerrit at coreboot.org
Sun Oct 25 10:24:24 CET 2015
Paul Menzel (paulepanter at users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12103
-gerrit
commit 04b5c5745e8970b029a887e97f4832a32f4a7e9b
Author: Paul Menzel <paulepanter at users.sourceforge.net>
Date: Tue Oct 20 10:21:08 2015 +0200
device: Stop and output time in `scan_bus()`
Output how long it took to scan a bus.
Note, that the function `scan_bus()` is called recursively.
Change-Id: I6335e10db783f092ea18d3a1c79f93135bee5826
Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
src/device/device.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/device/device.c b/src/device/device.c
index cf418eb..55a5dfd 100644
--- a/src/device/device.c
+++ b/src/device/device.c
@@ -909,6 +909,9 @@ int reset_bus(struct bus *bus)
static void scan_bus(struct device *busdev)
{
int do_scan_bus;
+ struct stopwatch sw;
+
+ stopwatch_init(&sw);
if (!busdev->enabled)
return;
@@ -931,6 +934,9 @@ static void scan_bus(struct device *busdev)
}
}
}
+
+ printk(BIOS_DEBUG, "%s: scanning of bus %s took %ld usecs\n",
+ __func__, dev_path(busdev), stopwatch_duration_usecs(&sw));
}
void scan_bridges(struct bus *bus)
More information about the coreboot-gerrit
mailing list