diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/cmd_bootm.c | 2 | ||||
| -rw-r--r-- | common/cmd_net.c | 7 | ||||
| -rw-r--r-- | common/cmd_usb.c | 1 | 
3 files changed, 9 insertions, 1 deletions
| diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index fd9f3e917..d88f6c025 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -199,6 +199,8 @@ static int bootm_start(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]  	bootm_start_lmb(); +	bootstage_mark_name(BOOTSTAGE_ID_BOOTM_START, "bootm_start"); +  	/* get kernel image header, start address and length */  	os_hdr = boot_get_kernel(cmdtp, flag, argc, argv,  			&images, &images.os.image_start, &images.os.image_len); diff --git a/common/cmd_net.c b/common/cmd_net.c index 6139188bd..65f32bcee 100644 --- a/common/cmd_net.c +++ b/common/cmd_net.c @@ -43,7 +43,12 @@ U_BOOT_CMD(  int do_tftpb (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  { -	return netboot_common(TFTPGET, cmdtp, argc, argv); +	int ret; + +	bootstage_mark_name(BOOTSTAGE_KERNELREAD_START, "tftp_start"); +	ret = netboot_common(TFTPGET, cmdtp, argc, argv); +	bootstage_mark_name(BOOTSTAGE_KERNELREAD_STOP, "tftp_done"); +	return ret;  }  U_BOOT_CMD( diff --git a/common/cmd_usb.c b/common/cmd_usb.c index 4a86590f1..9eba2713e 100644 --- a/common/cmd_usb.c +++ b/common/cmd_usb.c @@ -513,6 +513,7 @@ int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  	if ((strncmp(argv[1], "reset", 5) == 0) ||  		 (strncmp(argv[1], "start", 5) == 0)) { +		bootstage_mark_name(BOOTSTAGE_ID_USB_START, "usb_start");  		usb_stop();  		printf("(Re)start USB...\n");  		i = usb_init(); |