x86: bootstage: Add time measurement for vesa start-up
authorSimon Glass <sjg@chromium.org>
Wed, 28 Jan 2015 05:13:35 +0000 (22:13 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 6 Feb 2015 05:16:43 +0000 (22:16 -0700)
Since we must run a PCI BIOS ROM, and this can take a calamitous amount of
time, measure it using bootstage.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/video/vesa_fb.c

index 9164f8d166631ce436b5a13b473d80a068280842..47f824a726b137e60b3027cd03b263459f5a9851 100644 (file)
@@ -42,8 +42,10 @@ void *video_hw_init(void)
                        printf("no card detected\n");
                        return NULL;
                }
+               bootstage_start(BOOTSTAGE_ID_ACCUM_LCD, "vesa display");
                ret = pci_run_vga_bios(dev, NULL, PCI_ROM_USE_NATIVE |
                                       PCI_ROM_ALLOW_FALLBACK);
+               bootstage_accum(BOOTSTAGE_ID_ACCUM_LCD);
                if (ret) {
                        printf("failed to run video BIOS: %d\n", ret);
                        return NULL;