Commit fb4676c2 authored by Jean-Claude BAU's avatar Jean-Claude BAU Committed by Adam Wujek

WRPC optimization: bmc()

parent 0d7d192f
......@@ -33,6 +33,12 @@
# define CONFIG_HAS_WRPC_FAULTS 0
#endif
#ifdef CONFIG_ARCH_WRPC
#define IS_ARCH_WRPC() (1)
#else
#define IS_ARCH_WRPC() (0)
#endif
/* We can't include pp-printf.h when building freestading, so have it here */
extern int pp_printf(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
......
......@@ -1388,7 +1388,7 @@ int bmc(struct pp_instance *ppi)
}
/* Only if port is not any port is in the INITIALIZING state 9.2.6.8 */
if (bmc_any_port_initializing(ppg)) {
if ( !IS_ARCH_WRPC() && bmc_any_port_initializing(ppg)) {
pp_diag(ppi, bmc, 2, "A Port is in intializing\n");
return ppi->state;
}
......@@ -1396,7 +1396,7 @@ int bmc(struct pp_instance *ppi)
/* Calculate Erbest of all ports Figure 25 */
bmc_update_erbest(ppg);
if (DSDEF(ppi)->numberPorts > 1) {
if ( !IS_ARCH_WRPC() && DSDEF(ppi)->numberPorts > 1) {
ret = bmc_check_frgn_master(ppi);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment