diff options
author | John Keller <jpk@sgi.com> | 2007-05-11 01:42:44 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2007-05-11 12:35:38 -0400 |
commit | 25d61578daae697c4a0eb817f42a868af9824f82 (patch) | |
tree | ec4ac10132f0b12a822dba6a53d05bab78ec3760 /include | |
parent | 3e3d32770204ea24cf71919a90d9ccfc2bd407dd (diff) |
[IA64] SN: validate smp_affinity mask on intr redirect
On SN, only allow one bit to be set in the smp_affinty mask when
redirecting an interrupt. Currently setting multiple bits is allowed, but
only the first bit is used in determining the CPU to redirect to. This has
caused confusion among some customers.
[akpm@linux-foundation.org: fixes]
Signed-off-by: John Keller <jpk@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-ia64/irq.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-ia64/irq.h b/include/asm-ia64/irq.h index 79479e2c6966..67221615e317 100644 --- a/include/asm-ia64/irq.h +++ b/include/asm-ia64/irq.h | |||
@@ -11,6 +11,9 @@ | |||
11 | * 02/29/00 D.Mosberger moved most things into hw_irq.h | 11 | * 02/29/00 D.Mosberger moved most things into hw_irq.h |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/types.h> | ||
15 | #include <linux/cpumask.h> | ||
16 | |||
14 | #define NR_IRQS 256 | 17 | #define NR_IRQS 256 |
15 | #define NR_IRQ_VECTORS NR_IRQS | 18 | #define NR_IRQ_VECTORS NR_IRQS |
16 | 19 | ||
@@ -29,5 +32,8 @@ extern void disable_irq (unsigned int); | |||
29 | extern void disable_irq_nosync (unsigned int); | 32 | extern void disable_irq_nosync (unsigned int); |
30 | extern void enable_irq (unsigned int); | 33 | extern void enable_irq (unsigned int); |
31 | extern void set_irq_affinity_info (unsigned int irq, int dest, int redir); | 34 | extern void set_irq_affinity_info (unsigned int irq, int dest, int redir); |
35 | bool is_affinity_mask_valid(cpumask_t cpumask); | ||
36 | |||
37 | #define is_affinity_mask_valid is_affinity_mask_valid | ||
32 | 38 | ||
33 | #endif /* _ASM_IA64_IRQ_H */ | 39 | #endif /* _ASM_IA64_IRQ_H */ |