From 71d1597b9775121cffb41098a6393bf50b7857bc Mon Sep 17 00:00:00 2001 From: Adriaan Schmidt Date: Fri, 5 Jul 2024 07:29:42 +0200 Subject: [PATCH] chore: remove dead irqbalance functions The shell functions in profiles/functions related to irqbalance configuration have been unused since 462df2610c064019534a793f233f33d0ba6d7e1c. Remove them. Signed-off-by: Adriaan Schmidt --- functions | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/functions b/functions index 1468f403..3612a469 100644 --- a/functions +++ b/functions @@ -476,21 +476,6 @@ restore_logs_syncing() { mv -Z $RSYSLOG_SAVE $RSYSLOG_CFG || mv $RSYSLOG_SAVE $RSYSLOG_CFG } -irqbalance_banned_cpus_clear() { - sed -i '/^IRQBALANCE_BANNED_CPUS=/d' /etc/sysconfig/irqbalance || return - if [ ${1:-restart} = restart ]; then - systemctl try-restart irqbalance - fi -} - -irqbalance_banned_cpus_setup() { - irqbalance_banned_cpus_clear norestart - if [ -n "$1" ]; then - echo "IRQBALANCE_BANNED_CPUS=$1" >> /etc/sysconfig/irqbalance - fi - systemctl try-restart irqbalance -} - # # HARDWARE SPECIFIC tuning #