Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move bootstage timer out of lib/time.c | Simon Glass | 2012-04-10 | 1 | -0/+7 |
| | | | | | | | | | | | | The standalone example does not have get_timer() defined, so we cannot rely on it being available. Move the timer function into boootstage.c to avoid this problem. This corrects a build breakage for the standalone example on some boards. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Matthias Fuchs <matthias.fuchs@esd.eu> | ||||
* | bootstage: Implement core microsecond boot time measurement | Simon Glass | 2012-03-18 | 1 | -0/+43 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This defines the basics of a new boot time measurement feature. This allows logging of very accurate time measurements as the boot proceeds, by using an available microsecond counter. To enable the feature, define CONFIG_BOOTSTAGE in your board config file. Also available is CONFIG_BOOTSTAGE_REPORT which will cause a report to be printed just before handing off to the OS. Most IDs are not named at this stage. For that I would first like to renumber them all. Timer summary in microseconds: Mark Elapsed Stage 0 0 reset 205,000 205,000 board_init_f 6,053,000 5,848,000 bootm_start 6,053,000 0 id=1 6,058,000 5,000 id=101 6,058,000 0 id=100 6,061,000 3,000 id=103 6,064,000 3,000 id=104 6,093,000 29,000 id=107 6,093,000 0 id=106 6,093,000 0 id=105 6,093,000 0 id=108 7,089,000 996,000 id=7 7,089,000 0 id=15 7,089,000 0 id=8 7,097,000 8,000 start_kernel Signed-off-by: Simon Glass <sjg@chromium.org> | ||||
* | bootstage: Replace show_boot_progress/error() with bootstage_...() | Simon Glass | 2012-03-18 | 1 | -2/+28 |
| | | | | | | | These calls should not be made directly any more, since bootstage will call the show_boot_...() functions as needed. Signed-off-by: Simon Glass <sjg@chromium.org> | ||||
* | bootstage: Convert FIT progress numbers to enums | Simon Glass | 2012-03-18 | 1 | -0/+38 |
| | | | | | | | This changes over all the FIT image progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass <sjg@chromium.org> | ||||
* | bootstage: Convert net progress numbers to enums | Simon Glass | 2012-03-18 | 1 | -0/+11 |
| | | | | | | | This changes over the network-related progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass <sjg@chromium.org> | ||||
* | bootstage: Convert NAND progress numbers to enums | Simon Glass | 2012-03-18 | 1 | -0/+15 |
| | | | | | | | This changes over the NAND progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass <sjg@chromium.org> | ||||
* | bootstage: Convert IDE progress numbers to enums | Simon Glass | 2012-03-18 | 1 | -0/+14 |
| | | | | | | This changes over the IDE progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass <sjg@chromium.org> | ||||
* | bootstage: Convert progress numbers 20-41 to enums | Simon Glass | 2012-03-18 | 1 | -0/+25 |
| | | | | Signed-off-by: Simon Glass <sjg@chromium.org> | ||||
* | bootstage: Convert progress numbers 10-19 to enums | Simon Glass | 2012-03-18 | 1 | -0/+7 |
| | | | | | Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org> | ||||
* | bootstage: Convert progress numbers 1-9 into enums | Simon Glass | 2012-03-18 | 1 | -0/+14 |
| | | | | Signed-off-by: Simon Glass <sjg@chromium.org> | ||||
* | bootstage: Use show_boot_error() for -ve progress numbers | Simon Glass | 2012-03-18 | 1 | -0/+4 |
| | | | | | | | | Rather than the caller negating our progress numbers to indicate an error has occurred, which seems hacky, add a function to indicate this. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org> | ||||
* | bootstage: Create an initial header for boot progress integers | Simon Glass | 2012-03-18 | 1 | -0/+58 |
At present boot_stage_progress() is called with various magic numbers. The new bootstage.h header will be used to turn these into symbolic names throughout the code. The intent is not that these numbers are passed to Linux. In fact by using an enum to track them we should eventually be able to remove the explict numbers and just have the stages count up from 0. Signed-off-by: Simon Glass <sjg@chromium.org> |