backports: remove irq_set_affinity_hint()
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 Nov 2013 18:26:48 +0000 (19:26 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 Nov 2013 21:17:45 +0000 (22:17 +0100)
irq_set_affinity_hint() was never called by any code. This makes it
possible to remove struct cpumask.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/cpumask.h [deleted file]
backport/backport-include/linux/interrupt.h

diff --git a/backport/backport-include/linux/cpumask.h b/backport/backport-include/linux/cpumask.h
deleted file mode 100644 (file)
index 7df3457..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef __BACKPORT_LINUX_CPUMASK_H
-#define __BACKPORT_LINUX_CPUMASK_H
-#include_next <linux/cpumask.h>
-#include <linux/version.h>
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
-typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } compat_cpumask_t;
-#endif
-
-#endif /* __BACKPORT_LINUX_CPUMASK_H */
index 1729567439e43cfa631ba125495c7116930c56da..a9fb503ba377c3f125fca46415932af0a2b78e8b 100644 (file)
@@ -10,22 +10,6 @@ static inline int irq_set_irq_wake(unsigned int irq, unsigned int on)
 }
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
-#include <linux/cpumask.h>
-/* mask irq_set_affinity_hint as RHEL6 backports this */
-#define irq_set_affinity_hint LINUX_BACKPORT(irq_set_affinity_hint)
-/*
- * We cannot backport this guy as the IRQ data structure
- * was modified in the kernel itself to support this. We
- * treat the system as uni-processor in this case.
- */
-static inline int irq_set_affinity_hint(unsigned int irq,
-                                       const struct cpumask *m)
-{
-       return -EINVAL;
-}
-#endif
-
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
 #define IRQ_WAKE_THREAD        (2)
 #endif