Hi Ashok,
Thank you for comments.
+
+ /*
+ * 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;
---------------------------------------------------^^^^
I did this by intent, but we can also use "= gsv" instead
of "= vec".
In my patch, all per CPU interrupts are mapped to the same
IRQ regardless of what domain the cpu belongs to. So multiple
gsvs are mappied to one IRQ for per CPU interrupts.
+/*
+ * 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)??
Yes, it's a bug.
Thank you for finding this out.
Thanks,
Kenji Kaneshige
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html