mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
bootstage: Replace show_boot_progress/error() with bootstage_...()
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>
This commit is contained in:
committed by
Wolfgang Denk
parent
5ff55390ed
commit
770605e4f9
@@ -178,9 +178,35 @@ enum bootstage_id {
|
||||
* has occurred.
|
||||
*/
|
||||
void show_boot_progress(int val);
|
||||
static inline void show_boot_error(int val)
|
||||
|
||||
#ifdef CONFIG_BOOTSTAGE
|
||||
/* This is the full bootstage implementation */
|
||||
|
||||
/*
|
||||
* Mark a time stamp for the current boot stage.
|
||||
*/
|
||||
ulong bootstage_mark(enum bootstage_id id);
|
||||
|
||||
ulong bootstage_error(enum bootstage_id id);
|
||||
|
||||
#else
|
||||
/*
|
||||
* This is a dummy implementation which just calls show_boot_progress(),
|
||||
* and won't even do that unless CONFIG_SHOW_BOOT_PROGRESS is defined
|
||||
*/
|
||||
|
||||
static inline ulong bootstage_mark(enum bootstage_id id)
|
||||
{
|
||||
show_boot_progress(-val);
|
||||
show_boot_progress(id);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline ulong bootstage_error(enum bootstage_id id)
|
||||
{
|
||||
show_boot_progress(-id);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_BOOTSTAGE */
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user