From 8e71e0ad972ddb105264bdce3fffd0622edbd59b Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sat, 4 Jun 2022 14:12:28 +0300 Subject: [PATCH] irqbalance: remove local patch for socket directory Upstream has finally patched the UI communication socket creation to happen only if the irqbalance UI is enabled. As we do not use the irqbalance UI, we can remove our local fix implemented by 4f0c847828. (If you want to enable irqbalance UI, the fix is still needed.) Signed-off-by: Hannu Nyman --- utils/irqbalance/files/irqbalance.init | 2 -- .../110-fix-runtime-socket-directory.patch | 22 ------------------- 2 files changed, 24 deletions(-) delete mode 100644 utils/irqbalance/patches/110-fix-runtime-socket-directory.patch diff --git a/utils/irqbalance/files/irqbalance.init b/utils/irqbalance/files/irqbalance.init index 0f587e1580..638dcb39f6 100644 --- a/utils/irqbalance/files/irqbalance.init +++ b/utils/irqbalance/files/irqbalance.init @@ -16,8 +16,6 @@ start_service() { config_get_bool enabled irqbalance enabled 0 [ "$enabled" -gt 0 ] || return 0 - mkdir -p /var/run/irqbalance - # 10 is the default config_get interval irqbalance interval 10 diff --git a/utils/irqbalance/patches/110-fix-runtime-socket-directory.patch b/utils/irqbalance/patches/110-fix-runtime-socket-directory.patch deleted file mode 100644 index 036c7a476d..0000000000 --- a/utils/irqbalance/patches/110-fix-runtime-socket-directory.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/irqbalance.h -+++ b/irqbalance.h -@@ -165,7 +165,7 @@ extern unsigned int log_mask; - #endif /* HAVE_LIBSYSTEMD */ - - #define SOCKET_PATH "irqbalance" --#define SOCKET_TMPFS "/run/irqbalance" -+#define SOCKET_TMPFS "/var/run/irqbalance" - - extern int process_one_line(char *path, void (*cb)(char *line, void *data), void *data); - extern void get_mask_from_bitmap(char *line, void *mask); ---- a/ui/irqbalance-ui.h -+++ b/ui/irqbalance-ui.h -@@ -8,7 +8,7 @@ - #include - - #define SOCKET_PATH "irqbalance" --#define SOCKET_TMPFS "/run/irqbalance" -+#define SOCKET_TMPFS "/var/run/irqbalance" - - #define STATS "stats" - #define SET_SLEEP "settings sleep " -- 2.30.2