Move arm_gic_bind() out of the #ifdef SMP block to fix compile errors in
the not-SMP case. This is safe because arm_irq_next_cpu() will return the cpuid of the current/only core in the not-SMP case. Submitted by: Bartosz Szczepanek @ semihalf
This commit is contained in:
parent
3778878d7c
commit
7b19ce31bb
@ -860,7 +860,6 @@ arm_gic_post_filter(device_t dev, struct arm_irqsrc *isrc)
|
||||
gic_c_write_4(sc, GICC_EOIR, isrc->isrc_data);
|
||||
}
|
||||
|
||||
#ifdef SMP
|
||||
static int
|
||||
arm_gic_bind(device_t dev, struct arm_irqsrc *isrc)
|
||||
{
|
||||
@ -877,6 +876,7 @@ arm_gic_bind(device_t dev, struct arm_irqsrc *isrc)
|
||||
return (gic_bind(sc, irq, &isrc->isrc_cpu));
|
||||
}
|
||||
|
||||
#ifdef SMP
|
||||
static void
|
||||
arm_gic_ipi_send(device_t dev, struct arm_irqsrc *isrc, cpuset_t cpus)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user