Skip to content

Commit

Permalink
GenAVB/TSN SDK release 5.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GhMarwen committed Mar 20, 2023
1 parent b0314e5 commit 157d836
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SCR_genavb-release.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NXP Software Content Register

Release Name: genavb-sdk
Version: GenAVB/TSN 5_4_0
Version: GenAVB/TSN 5_4_1
Date Created: March-2023
Release Location: https://github.com/NXP/GenAVB_TSN
Description: GenAVB/TSN protocol stack for NXP MPUs and MCUs processors
Expand Down
5 changes: 4 additions & 1 deletion linux/scripts/avb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ fi
if [ "$NB_CPU" -gt 2 ];then
MEDIA_APP_CPU_MASK=4
MEDIA_APP_CPU_CORE=2
else
elif [ "$NB_CPU" -eq 2 ];then
if [ $AVB_MODE -eq 1 ]; then
MEDIA_APP_CPU_MASK=1
MEDIA_APP_CPU_CORE=0
Expand All @@ -828,6 +828,9 @@ else
MEDIA_APP_CPU_MASK=2
MEDIA_APP_CPU_CORE=1
fi
else
MEDIA_APP_CPU_MASK=1
MEDIA_APP_CPU_CORE=0
fi

# Detect the platform we are running on and set $MACHINE accordingly, then set variables.
Expand Down
4 changes: 3 additions & 1 deletion linux/scripts/tsn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -588,14 +588,16 @@ echo "Using ps = ${PS}"
NB_CPU=$(grep -c processor /proc/cpuinfo)
if [ "$NB_CPU" -gt 2 ];then
CPU_MASK=2
else
elif [ "$NB_CPU" -eq 2 ];then
# On platforms with dual cores:
# tsn processes are pinned to core#1 for avb endpoint, and core#0 for tsn endpoint
if [ "$AVB_MODE" -eq 1 ];then
CPU_MASK=2
else
CPU_MASK=1
fi
else
CPU_MASK=1
fi

# Detect the platform we are running on and set $MACHINE accordingly, then set variables.
Expand Down

0 comments on commit 157d836

Please sign in to comment.