From 5e0ae49f084170ef5556ff98a9a32817534f419a Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Tue, 15 Dec 2015 08:29:12 +0100 Subject: [PATCH] Fixed AArch64 support --- irqbalance-fix-aarch64.patch | 22 ++++++++++++++++++++++ irqbalance.spec | 7 ++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 irqbalance-fix-aarch64.patch diff --git a/irqbalance-fix-aarch64.patch b/irqbalance-fix-aarch64.patch new file mode 100644 index 0000000..9e5492b --- /dev/null +++ b/irqbalance-fix-aarch64.patch @@ -0,0 +1,22 @@ +diff --git a/procinterrupts.c b/procinterrupts.c +index 63101d6..b70bfc2 100644 +--- a/procinterrupts.c ++++ b/procinterrupts.c +@@ -80,7 +80,7 @@ static int check_platform_device(char *name, struct irq_info *info) + rc = 0; + goto out; + } else if (!strncmp(ent->d_name, "net", strlen("net"))) { +- info->IRQ_TYPE_LEGACY; ++ info->type = IRQ_TYPE_LEGACY; + info->class = IRQ_ETH; + rc = 0; + goto out; +@@ -94,7 +94,7 @@ static int check_platform_device(char *name, struct irq_info *info) + + out: + closedir(dirfd); +- log(TO_ALL, LOG_DEBUG, "IRQ %s is of type %d and class %d\n", name, info->type, info->class) ++ log(TO_ALL, LOG_DEBUG, "IRQ %s is of type %d and class %d\n", name, info->type, info->class); + return rc; + + } diff --git a/irqbalance.spec b/irqbalance.spec index d40808a..ff33154 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -1,6 +1,6 @@ Name: irqbalance Version: 1.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 2 Summary: IRQ balancing daemon @@ -23,6 +23,7 @@ Requires: numactl-libs ExcludeArch: s390 s390x Patch1: irqbalance-1.0.4-env-file-path.patch +Patch2: irqbalance-fix-aarch64.patch %description irqbalance is a daemon that evenly distributes IRQ load across @@ -31,6 +32,7 @@ multiple CPUs for enhanced performance. %prep %setup -q %patch1 -p1 +%patch2 -p1 %build ./autogen.sh @@ -68,6 +70,9 @@ fi /sbin/chkconfig --del irqbalance >/dev/null 2>&1 || : %changelog +* Tue Dec 15 2015 Marcin Juszkiewicz - 2:1.1.0-2 +- Fixed AArch64 support. + * Mon Dec 07 2015 Petr Holasek - 2:1.1.0-1 - Rebased to v1.1.0 (bz1288674)