From 3c635ff77c7143ac11530cf8ddd4fd31a77644bceb05ac034cd8f8b66f9fa977 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 24 Feb 2016 10:54:26 +0000 Subject: [PATCH] Accepting request 361081 from home:Andreas_Schwab:Factory - fix-aarch64-support.patch: Fix AArch64 support OBS-URL: https://build.opensuse.org/request/show/361081 OBS-URL: https://build.opensuse.org/package/show/Base:System/irqbalance?expand=0&rev=55 --- fix-aarch64-support.patch | 36 ++++++++++++++++++++++++++++++++++++ irqbalance.changes | 5 +++++ irqbalance.spec | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 fix-aarch64-support.patch diff --git a/fix-aarch64-support.patch b/fix-aarch64-support.patch new file mode 100644 index 0000000..478722a --- /dev/null +++ b/fix-aarch64-support.patch @@ -0,0 +1,36 @@ +From 1dccd034a90b2f0221423632de65cbf84d05ebfb Mon Sep 17 00:00:00 2001 +From: Marcin Juszkiewicz +Date: Tue, 15 Dec 2015 09:09:09 +0100 +Subject: [PATCH] Fix AArch64 support + +Signed-off-by: Marcin Juszkiewicz +Signed-off-by: PJ Waskiewicz +--- + procinterrupts.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +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; + + } +-- +2.7.1 + diff --git a/irqbalance.changes b/irqbalance.changes index 59c74a0..dca7bc4 100644 --- a/irqbalance.changes +++ b/irqbalance.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 23 10:11:19 UTC 2016 - schwab@suse.de + +- fix-aarch64-support.patch: Fix AArch64 support + ------------------------------------------------------------------- Sun Jan 17 11:46:01 UTC 2016 - mpluskal@suse.com diff --git a/irqbalance.spec b/irqbalance.spec index 1e7982d..a460c55 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -25,6 +25,7 @@ Group: System/Daemons Url: https://github.com/Irqbalance/irqbalance Source: https://github.com/Irqbalance/irqbalance/archive/v%{version}.tar.gz Source3: sysconfig.irqbalance +Patch1: fix-aarch64-support.patch BuildRequires: libcap-ng-devel BuildRequires: libtool BuildRequires: systemd-rpm-macros @@ -43,6 +44,7 @@ being used for all IRQs. %prep %setup -q +%patch1 -p1 %build NOCONFIGURE=1 ./autogen.sh