This repository has been archived by the owner on Nov 14, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
techpack: data: Merge tag 'LA.UM.9.12.r1-11000-SMxx50.0' into neutrin…
…o-msm-kebab-4.19 "LA.UM.9.12.r1-11000-SMxx50.0" * tag 'LA.UM.9.12.r1-11000-SMxx50.0': data-kernel: rps setting Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#This makefile is only to compile EMAC for AUTO platform | ||
|
||
ifeq ($(TARGET_BOARD_AUTO),true) | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := emac_rps_settings.sh | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE_CLASS := ETC | ||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES) | ||
LOCAL_SRC_FILES := emac_rps_settings.sh | ||
include $(BUILD_PREBUILT) | ||
|
||
endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/vendor/bin/sh | ||
#Copyright (c) 2019, 2021, The Linux Foundation. All rights reserved. | ||
# | ||
#This program is free software; you can redistribute it and/or modify | ||
#it under the terms of the GNU General Public License version 2 and | ||
#only version 2 as published by the Free Software Foundation. | ||
# | ||
#This program is distributed in the hope that it will be useful, | ||
#but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
#GNU General Public License for more details. | ||
# | ||
# | ||
plateform_hana=1 | ||
plateform_talos=2 | ||
plateform_poipu=3 | ||
irq_num=`cat /proc/interrupts | grep -i DWC_ETH_QOS| grep -i gic | awk {'print $1'} | awk -F : {'print $1'}`; | ||
echo irqnum=$irq_num; | ||
case $1 in | ||
$plateform_hana) | ||
echo $2 > /sys/class/net/eth0/queues/rx-0/rps_cpus; | ||
;; | ||
$plateform_poipu) | ||
echo $2 > /sys/class/net/eth0/queues/rx-0/rps_cpus; | ||
;; | ||
$plateform_talos) | ||
# Here 08 is forcing ISR to CPU 3 | ||
echo 08 > /proc/irq/$irq_num/smp_affinity; | ||
echo $2 > /sys/class/net/eth0/queues/rx-0/rps_cpus; | ||
;; | ||
*) | ||
echo "Invalid plateform $1"; | ||
;; | ||
esac |