svn commit: r289698 - head/sys/arm/arm

Ian Lepore ian at FreeBSD.org
Wed Oct 21 13:59:02 UTC 2015


Author: ian
Date: Wed Oct 21 13:59:00 2015
New Revision: 289698
URL: https://svnweb.freebsd.org/changeset/base/289698

Log:
  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

Modified:
  head/sys/arm/arm/gic.c

Modified: head/sys/arm/arm/gic.c
==============================================================================
--- head/sys/arm/arm/gic.c	Wed Oct 21 13:53:07 2015	(r289697)
+++ head/sys/arm/arm/gic.c	Wed Oct 21 13:59:00 2015	(r289698)
@@ -860,7 +860,6 @@ arm_gic_post_filter(device_t dev, struct
 	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_ir
 	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)
 {


More information about the svn-src-all mailing list