u-boot/common
Simon Glass 03ecac3149 bootstage: Use rec_count as the array index
At present bootstage has a large array with all possible bootstage IDs
recorded. It adds times to the array element indexed by the ID. This is
inefficient because many IDs are not used during boot. We can save space
by only recording those IDs which actually have timestamps.

Update the array to use a record count, which increments with each
addition of a new timestamp. This takes longer to record a time, since it
may involve an array search. Such a search may be particularly expensive
before relocation when the CPU is running slowly or the cache is off. But
at that stage there should be very few records.

Signed-off-by: Simon Glass <sjg@chromium.org>
2017-06-05 14:13:05 -04:00
..
eeprom cmd: eeprom: add support for layout aware commands 2016-05-20 17:02:07 -04:00
init board_init.c: Always use memset() 2017-01-20 15:38:01 -05:00
spl fs: fat: add kbuild configuration support 2017-06-03 17:55:16 -04:00
autoboot.c autoboot: move bootdelay >= 0 check to abortboot() 2016-07-01 17:42:56 -04:00
bedbug.c
board_f.c bootstage: Convert to use malloc() 2017-06-05 14:13:04 -04:00
board_info.c generic-board: make show_board_info a weak function 2016-11-28 15:10:32 -05:00
board_r.c api: Add a header for api_init() 2017-06-05 11:02:29 -04:00
bootm_os.c fdt: Move fdt_fixup_ethernet to a common place 2017-05-01 09:11:59 -04:00
bootm.c bootm: fix passing argc to standalone apps 2016-10-01 20:04:37 -04:00
bootretry.c
bootstage.c bootstage: Use rec_count as the array index 2017-06-05 14:13:05 -04:00
bouncebuf.c
cli_hush.c hush: Add rudimentary support for PS1 and PS2 2016-02-08 10:10:37 -05:00
cli_readline.c common: cli_readline: Improve command line editing 2016-08-20 14:03:24 -04:00
cli_simple.c common: cli_simple: use strlcpy instead of strcpy 2016-01-13 21:05:26 -05:00
cli.c hush: complete renaming CONFIG_SYS_HUSH_PARSER to CONFIG_HUSH_PARSER 2016-06-24 17:24:34 -04:00
command.c Drop command-processing code when CONFIG_CMDLINE is disabled 2016-04-01 17:17:40 -04:00
console.c console: Don't enable CONFIG-CONSOLE_MUX, etc. in SPL 2017-02-06 11:38:46 +08:00
cros_ec.c
ddr_spd.c Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
dfu.c common: dfu: ignore reset for spl-dfu 2017-05-12 08:37:09 -04:00
dlmalloc.c malloc: improve memalign fragmentation fix 2016-05-23 11:50:17 -04:00
dlmalloc.src
edid.c edid: Add HDMI flag to timing info 2017-05-15 20:32:12 +02:00
env_attr.c env: avoid possible NULL pointer access 2017-05-12 08:37:17 -04:00
env_callback.c common: env: initialize scalar variable 2016-01-04 12:25:35 -05:00
env_common.c Rename aes.h to uboot_aes.h 2017-04-12 13:28:27 -04:00
env_dataflash.c
env_eeprom.c env_eeprom invalidates gd->env_addr by setting it to an offset value 2016-04-11 12:44:37 -04:00
env_embedded.c tools/env: Correct include kconfig 2016-11-23 23:41:23 -08:00
env_ext4.c common: Fix support for environment file in EXT4 2016-06-24 17:24:35 -04:00
env_fat.c dm: block: Rename device number member dev to devnum 2016-03-14 15:34:50 -06:00
env_flags.c env: split fw_env.h in public and private parts 2017-04-12 13:28:28 -04:00
env_flash.c
env_mmc.c dm: mmc: Don't re-init when accessing environment 2017-06-01 07:03:04 -06:00
env_nand.c common: env_nand: Ensure that we have nand_info[0] prior to use 2016-08-15 18:46:41 -04:00
env_nowhere.c
env_nvram.c
env_onenand.c
env_remote.c
env_sata.c common: env: support sata device 2016-04-18 12:29:14 -04:00
env_sf.c dm: Use dm.h header when driver mode is used 2017-06-01 06:57:52 -06:00
env_ubi.c common: env_ubi: Clear environment buffer before reading 2016-06-13 06:41:20 +02:00
exports.c
fb_mmc.c disk: Return the partition number in part_get_info_by_name() 2017-05-11 22:03:37 -04:00
fb_nand.c fastboot: sparse: implement reserve() 2016-06-27 16:37:39 -04:00
fdt_support.c fdt: Rename a few functions in fdt_support 2017-06-01 07:03:11 -06:00
flash.c flash: compile common/flash.c iif CONFIG_MTD_NO_FLASH is enabled 2017-02-12 14:30:31 -05:00
hash.c Kconfig: Finish migration of hashing commands 2017-05-31 19:38:14 -04:00
hwconfig.c
image-android.c image: Update include/android_image.h 2017-05-11 22:03:37 -04:00
image-fdt.c fdt: Move fdt_fixup_ethernet to a common place 2017-05-01 09:11:59 -04:00
image-fit.c splash: add support for loading splash from a FIT image 2017-01-13 17:40:38 +01:00
image-sig.c image: Combine image_sig_algo with image_sign_info 2016-11-21 14:07:31 -05:00
image-sparse.c fastboot: sparse: improve CHUNK_TYPE_FILL write performance 2016-06-27 16:37:39 -04:00
image.c common/image.c: Use correct suffixes for binary sizes 2017-01-20 15:37:59 -05:00
iomux.c console: Don't enable CONFIG-CONSOLE_MUX, etc. in SPL 2017-02-06 11:38:46 +08:00
iotrace.c
kallsyms.c
Kconfig bootstage: Use rec_count as the array index 2017-06-05 14:13:05 -04:00
kgdb_stubs.c Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
kgdb.c Fix spelling of "occurred". 2016-05-02 18:37:09 -04:00
lcd_console_rotation.c
lcd_console.c
lcd_simplefb.c dm: video: Add driver-model support to lcd_simplefb 2017-05-09 20:20:41 -04:00
lcd.c video: bmp: rename CONFIG_BMP_24BMP to CONFIG_BMP_24BPP 2017-05-15 20:55:13 +02:00
lynxkdi.c
main.c Drop use of CONFIG_SYS_GENERIC_BOARD in U-Boot 2016-05-27 15:39:54 -04:00
Makefile Kconfig: Add a CONFIG_IDE option 2017-05-22 12:45:27 -04:00
malloc_simple.c malloc_simple: Add debug statements to memalign_simple 2017-01-28 14:04:34 -05:00
memsize.c Revert "common/memsize.c: Simplify RAM size detection" 2016-02-10 08:34:42 -05:00
menu.c Fix typo choosen in comments and printf logs 2016-03-27 09:12:23 -04:00
miiphyutil.c common: miiphyutil: Add helper function for mdio bus name 2016-12-20 07:40:04 +01:00
s_record.c
sata.c sata: fix sata command can not being executed bug 2016-11-28 19:49:47 -05:00
scsi.c scsi: dm: split scsi_scan() 2017-05-09 12:14:16 -06:00
splash_source.c splash: Prevent splash_load_fs from writing to 0x0 2017-02-27 16:08:06 +01:00
splash.c splash: Introduce default_splash_locations 2016-07-26 08:47:37 +02:00
stdio.c i2c: Finish dropping use of CONFIG_I2C_HARD 2017-05-15 06:18:30 +02:00
system_map.c
update.c flash: complete CONFIG_SYS_NO_FLASH move with renaming 2017-02-12 14:30:25 -05:00
usb_hub.c dm: Use dm_scan_fdt_dev() directly where possible 2016-07-27 14:15:54 -06:00
usb_kbd.c console: Don't enable CONFIG-CONSOLE_MUX, etc. in SPL 2017-02-06 11:38:46 +08:00
usb_storage.c Kconfig: USB: Migrate CONFIG_USB_EHCI to CONFIG_USB_EHCI_HCD 2017-05-15 10:40:05 -04:00
usb.c usb: squash lines for immediate return 2016-09-23 17:53:48 -04:00
xyzModem.c common/xyzModem.c: Do not use hard-coded address for debug buffer 2017-04-08 09:26:55 -04:00