cpu/x86/mp_init.c: Prolong delay on synchronous API
When each AP needs to do a lot of printing 1 sec is not enough. Change-Id: I00f0a49bf60f3915547924c34a62dd0044b0c918 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64828 Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kane Chen <kane.chen@intel.corp-partner.google.com>
This commit is contained in:
parent
fd7a6946d7
commit
3f6ff24e57
|
@ -1041,9 +1041,9 @@ enum cb_err mp_run_on_all_cpus_synchronously(void (*func)(void *), void *arg)
|
|||
/* Run on BSP first. */
|
||||
func(arg);
|
||||
|
||||
/* For up to 1 second for AP to finish previous work. */
|
||||
/* For up to 1 second per AP (console can be slow) to finish previous work. */
|
||||
return mp_run_on_aps_and_wait_for_complete(func, arg, MP_RUN_ON_ALL_CPUS,
|
||||
1000 * USECS_PER_MSEC);
|
||||
1000 * USECS_PER_MSEC * global_num_aps);
|
||||
}
|
||||
|
||||
enum cb_err mp_park_aps(void)
|
||||
|
|
|
@ -122,7 +122,7 @@ enum cb_err mp_run_on_all_aps(void (*func)(void *), void *arg, long expire_us,
|
|||
enum cb_err mp_run_on_all_cpus(void (*func)(void *), void *arg);
|
||||
|
||||
/* Like mp_run_on_all_cpus but make sure all APs finish executing the
|
||||
function call. The time limit on a function call is 1 second. */
|
||||
function call. The time limit on a function call is 1 second per AP. */
|
||||
enum cb_err mp_run_on_all_cpus_synchronously(void (*func)(void *), void *arg);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue