Fixed AArch64 support

This commit is contained in:
Marcin Juszkiewicz 2015-12-15 08:29:12 +01:00
parent 29255c9777
commit 5e0ae49f08
2 changed files with 28 additions and 1 deletions

View File

@ -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;
}

View File

@ -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 <mjuszkiewicz@redhat.com> - 2:1.1.0-2
- Fixed AArch64 support.
* Mon Dec 07 2015 Petr Holasek <pholasek@redhat.com> - 2:1.1.0-1
- Rebased to v1.1.0 (bz1288674)