Re: [RFC][patch 3/10] Multiple vector domain support - introduce gsv

From: Ashok Raj <ashok.raj_at_intel.com>
Date: 2005-07-15 03:50:43
On Thu, Jul 14, 2005 at 06:24:14PM +0900, Kenji Kaneshige wrote:

Hi Kaneshige,

Iam in the process of reviewing in detail, but here are a few that 
came by,


>  int
> @@ -290,8 +293,22 @@ ia64_send_ipi (int cpu, int vector, int 
>  void __init
>  ia64_vector_domain_init (void)
>  {
> +	int domain, vec, gsv;
> +
>  	/* Attach BSP to domain #0 */
>  	ia64_attach_cpu_to_domain(0);
> +
> +	/*
> +	 * Make special mapping between per CPU IRQs and GSVs
> +	 */
> +	for (gsv = 0; gsv < NR_GSVS; gsv++) {
> +		vec = gsv_to_vector(gsv);
> +		if (vec < IA64_FIRST_DEVICE_VECTOR ||
> +		    vec > IA64_LAST_DEVICE_VECTOR) {
> +			ia64_gsv_to_irq_map[gsv] = vec;
> +			ia64_irq_to_gsv_map[vec] = vec;

Should the above be = gsv instead of vec?
> +			ia64_irq_to_gsv_map[vec] = vec;
---------------------------------------------------^^^^


> +
> +/*
> + * Convert global system vector to the corresponding IRQ.
> + */
> +static inline int
> +gsv_to_irq (unsigned int gsv)
> +{
> +	if (gsv > NR_GSVS)

Should the above be (gsv >= NR_GSVS)?? 

> +		return -1;
> +	return ia64_gsv_to_irq_map[gsv];
> +}
> +

-- 
Cheers,
Ashok Raj
- Open Source Technology Center
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Jul 14 13:51:01 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST