diff options
| author | Simon Glass <[email protected]> | 2015-01-27 22:13:44 -0700 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2015-02-06 12:07:38 -0700 |
| commit | abbdb262570f415b5eaea036486076669eff1e76 (patch) | |
| tree | 9449494d21b01b70d8afce3256fdc53f70f41105 /common | |
| parent | 5093badbb59e83b42b8f9e5579e07e3916271207 (diff) | |
scsi: bootstage: Measure time taken to scan the bus
On some hardware this time can be significant. Add bootstage support for
measuring this. The result can be obtained using 'bootstage report' or
passed on to the Linux via the device tree.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/cmd_scsi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_scsi.c b/common/cmd_scsi.c index cbc107ea501..a0a62ebdca8 100644 --- a/common/cmd_scsi.c +++ b/common/cmd_scsi.c @@ -217,8 +217,10 @@ void scsi_init(void) (busdevfunc >> 8) & 0x7); } #endif + bootstage_start(BOOTSTAGE_ID_ACCUM_SCSI, "ahci"); scsi_low_level_init(busdevfunc); scsi_scan(1); + bootstage_accum(BOOTSTAGE_ID_ACCUM_SCSI); } #endif |
