Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
fb4676c2
Commit
fb4676c2
authored
Apr 20, 2018
by
Jean-Claude BAU
Committed by
Adam Wujek
Nov 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WRPC optimization: bmc()
parent
0d7d192f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ppsi.h
include/ppsi/ppsi.h
+6
-0
bmc.c
proto-standard/bmc.c
+2
-2
No files found.
include/ppsi/ppsi.h
View file @
fb4676c2
...
...
@@ -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
)));
...
...
proto-standard/bmc.c
View file @
fb4676c2
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment