diff -ruN rpmbuild-orig/SOURCES/numactl-2.0.9-arm_migrate_pages.patch rpmbuild/SOURCES/numactl-2.0.9-arm_migrate_pages.patch
--- rpmbuild-orig/SOURCES/numactl-2.0.9-arm_migrate_pages.patch	1970-01-01 01:00:00.000000000 +0100
+++ rpmbuild/SOURCES/numactl-2.0.9-arm_migrate_pages.patch	2015-08-10 09:26:26.346290812 +0200
@@ -0,0 +1,13 @@
+diff -ruN numactl-2.0.9-orig/syscall.c numactl-2.0.9/syscall.c
+--- numactl-2.0.9-orig/syscall.c	2013-10-08 23:34:58.000000000 +0200
++++ numactl-2.0.9/syscall.c	2014-12-25 15:56:29.028437246 +0100
+@@ -109,6 +109,9 @@
+ 
+ #define __NR_migrate_pages	272
+ 
++#elif defined (__arm__)
++#define __NR_migrate_pages     380
++
+ #elif !defined(DEPS_RUN)
+ #error "Add syscalls for your architecture or update kernel headers"
+ #endif
diff -ruN rpmbuild-orig/SPECS/numactl.spec rpmbuild/SPECS/numactl.spec
--- rpmbuild-orig/SPECS/numactl.spec	2015-08-06 01:49:36.000000000 +0200
+++ rpmbuild/SPECS/numactl.spec	2015-08-10 09:29:14.551007364 +0200
@@ -1,7 +1,7 @@
 Name:		numactl
 Summary:	Library for tuning for Non Uniform Memory Access machines
 Version:	2.0.9
-Release:	5%{?dist}
+Release:	5%{?dist}.redsleeve
 # libnuma is LGPLv2 and GPLv2
 # numactl binaries are GPLv2 only
 License:	GPLv2
@@ -10,12 +10,13 @@
 Source0:	ftp://oss.sgi.com/www/projects/libnuma/download/numactl-%{version}.tar.gz
 Buildroot:	%{_tmppath}/%{name}-buildroot
 
-ExcludeArch: s390 s390x %{arm}
+ExcludeArch: s390 s390x
 
 Patch1: numactl-2.0.8-localalloc-man.patch
 Patch2: numactl-2.0.9-hw-detect-segfault.patch
 Patch3: numactl-2.0.9-mpol-bind-preferred.patch
 Patch4: numactl-2.0.10-numa_node_to_cpu_skip_over_nonexisting.patch
+Patch10001: numactl-2.0.9-arm_migrate_pages.patch
 
 %description
 Simple NUMA policy support. It consists of a numactl program to run
@@ -46,6 +47,7 @@
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch10001 -p1
 
 %build
 make clean
@@ -94,6 +96,11 @@
 %{_mandir}/man3/*.3*
 
 %changelog
+* Mon Aug 10 2015 Jacco Ligthart <jacco@redsleeve.org> - 2.0.9-5.redsleeve
+- Don't exclude arm architectures
+- add patch for __NR_migrate_pages on arm, see:
+- https://wiki.linaro.org/LEG/Engineering/Kernel/NUMA
+
 * Wed Jul 01 2015 Petr Holasek <pholasek@redhat.com> - 2.0.9-5
 - numa_node_to_cpu skips over non-existing nodes (bz1238282)
 
