Skip to content
Snippets Groups Projects
Commit 980a6dec authored by Markus Gothe's avatar Markus Gothe :ok_hand:
Browse files

ecnt_init: Fix SMP affinity for VoIP stack.

parent 1801a765
No related branches found
No related tags found
1 merge request!1398ecnt_init: Fix SMP affinity for VoIP stack.
......@@ -40,6 +40,20 @@ boot() {
. $PROFILE_CFG
fi
if [ -x /userfs/bin/voip_loader -a "$(cat /proc/device-tree/airoha-voice/slic-power-mode)" != "none" ]; then
if [ "$TCSUPPORT_CPU_ARMV8" != "" ] ;then
HID=`cat /proc/tc3162/hid`
if [ "$HID" = "f" ] || [ "$HID" = "10" ]; then
CPUIDX=0x2
/userfs/bin/irqCpuBind set PCM1 1
else
CPUIDX=0x8
/userfs/bin/irqCpuBind set PCM1 3
fi
printf "%x" $((0xf&~CPUIDX)) > /proc/irq/default_smp_affinity
fi
fi
echo 65535 > /proc/net/skbmgr_driver_max_skb
echo 32768 > /proc/net/skbmgr_limit
echo 32767 > /proc/net/skbmgr_4k_limit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment