diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-24 19:26:48 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-30 21:10:02 +0100 |
commit | 5a67f739e29bb6f84a1e312775dc1e52652b6378 (patch) | |
tree | 61c8e8472ed4df22a3234ebfe7286ecb711cdf30 | |
parent | c35a75d9425069298276b86b091f9a0ac26e26bd (diff) |
backports: remove irq_set_affinity_hint()
Upstream commit: 84453052c585d2dd101e74c43663615013afa64d
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>
-rw-r--r-- | backport/backport-include/linux/cpumask.h | 10 | ||||
-rw-r--r-- | backport/backport-include/linux/interrupt.h | 16 |
2 files changed, 0 insertions, 26 deletions
diff --git a/backport/backport-include/linux/cpumask.h b/backport/backport-include/linux/cpumask.h deleted file mode 100644 index 7df3457c..00000000 --- a/backport/backport-include/linux/cpumask.h +++ /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 */ diff --git a/backport/backport-include/linux/interrupt.h b/backport/backport-include/linux/interrupt.h index 17295674..a9fb503b 100644 --- a/backport/backport-include/linux/interrupt.h +++ b/backport/backport-include/linux/interrupt.h @@ -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 |