Browse Source

Merge pull request #11423 from fantom-x/irqbalance-add-interval

irqbalance: add support for interval and banirq
lilik-openwrt-22.03
Hannu Nyman 5 years ago
committed by GitHub
parent
commit
c124aa4d20
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 2 deletions
  1. +1
    -1
      utils/irqbalance/Makefile
  2. +7
    -0
      utils/irqbalance/files/irqbalance.config
  3. +12
    -1
      utils/irqbalance/files/irqbalance.init

+ 1
- 1
utils/irqbalance/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=irqbalance
PKG_VERSION:=1.6.0
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_PROTO:=git


+ 7
- 0
utils/irqbalance/files/irqbalance.config View File

@ -1,3 +1,10 @@
config irqbalance 'irqbalance'
option enabled '0'
# The default value is 10 seconds
#option interval '10'
# List of IRQ's to ignore
#list banirq '36'
#list banirq '69'

+ 12
- 1
utils/irqbalance/files/irqbalance.init View File

@ -9,8 +9,19 @@ start_service() {
config_get_bool enabled irqbalance enabled 0
[ "$enabled" -gt 0 ] || return 0
# 10 is the default
config_get interval irqbalance interval 10
# A list of IRQ's to ignore
banirq=""
handle_banirq_value()
{
banirq="$banirq -i $1"
}
config_list_foreach irqbalance banirq handle_banirq_value
procd_open_instance "irqbalance"
procd_set_param command /usr/sbin/irqbalance -f
procd_set_param command /usr/sbin/irqbalance -f -t "$interval" "$banirq"
procd_set_param respawn
procd_close_instance
}


Loading…
Cancel
Save