Re: [RFC][PATCH 2/2] Implement platform_irq_to_vector() for SN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kenji Kaneshige wrote:
> 
> Implement platform_irq_to_vector() for SN platform.
> 
> Signed-off-by: Kenji Kaneshige <kaneshige.kenji@xxxxxxxxxxxxxx>
> 
> ---
>  arch/ia64/sn/kernel/irq.c      |    5 +++++
>  include/asm-ia64/machvec_sn2.h |    2 ++
>  2 files changed, 7 insertions(+)
> 
> Index: linux-2.6.23-rc1/arch/ia64/sn/kernel/irq.c
> ===================================================================
> --- linux-2.6.23-rc1.orig/arch/ia64/sn/kernel/irq.c
> +++ linux-2.6.23-rc1/arch/ia64/sn/kernel/irq.c
> @@ -256,6 +256,11 @@ struct irq_chip irq_type_sn = {
>  	.set_affinity	= sn_set_affinity_irq
>  };
>  
> +ia64_vector sn_irq_to_vector(int irq)
> +{
> +	return (ia64_vector)irq;
> +}
> +
>  unsigned int sn_local_vector_to_irq(u8 vector)
>  {
>  	return (CPU_VECTOR_TO_IRQ(smp_processor_id(), vector));

One thing to be aware of is ia64_vector is u8, which can hold
a value from 0-255.  NR_IRQS is 1024.

So sn_irq_to_vector() will truncate any IRQ > 255.



-- 
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          rja@xxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux