|
@@ -57,14 +57,9 @@ static void extioi_setirq(void *opaque, int irq, int level)
|
|
|
LoongArchExtIOI *s = LOONGARCH_EXTIOI(opaque);
|
|
|
trace_loongarch_extioi_setirq(irq, level);
|
|
|
if (level) {
|
|
|
- /*
|
|
|
- * s->isr should be used in vmstate structure,
|
|
|
- * but it not support 'unsigned long',
|
|
|
- * so we have to switch it.
|
|
|
- */
|
|
|
- set_bit(irq, (unsigned long *)s->isr);
|
|
|
+ set_bit32(irq, s->isr);
|
|
|
} else {
|
|
|
- clear_bit(irq, (unsigned long *)s->isr);
|
|
|
+ clear_bit32(irq, s->isr);
|
|
|
}
|
|
|
extioi_update_irq(s, irq, level);
|
|
|
}
|
|
@@ -154,7 +149,7 @@ static inline void extioi_update_sw_coremap(LoongArchExtIOI *s, int irq,
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- if (notify && test_bit(irq + i, (unsigned long *)s->isr)) {
|
|
|
+ if (notify && test_bit32(irq + i, s->isr)) {
|
|
|
/*
|
|
|
* lower irq at old cpu and raise irq at new cpu
|
|
|
*/
|