Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2015 15:15:30 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289631 - head/sys/arm/arm
Message-ID:  <201510201515.t9KFFUgC067066@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Tue Oct 20 15:15:30 2015
New Revision: 289631
URL: https://svnweb.freebsd.org/changeset/base/289631

Log:
  Uncomment some rather important code that was commented out for benchmarking.
  Normally this routine is supposed to loop until the PIC returns a "no more
  interrupts pending" indication.  I had commented that out to do just one
  interrupt per invokation to do some timing tests.
  
  Spotted by:   	Svata Kraus
  Pointy Hat:	ian

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

Modified: head/sys/arm/arm/gic.c
==============================================================================
--- head/sys/arm/arm/gic.c	Tue Oct 20 13:47:36 2015	(r289630)
+++ head/sys/arm/arm/gic.c	Tue Oct 20 15:15:30 2015	(r289631)
@@ -554,10 +554,10 @@ dispatch_irq:
 	arm_irq_dispatch(isrc, tf);
 
 next_irq:
-//      arm_irq_memory_barrier(irq); /* XXX */
-//      irq_active_reg = gic_c_read_4(sc, GICC_IAR);
-//      irq = irq_active_reg & 0x3FF;
-	if (0 && irq < sc->nirqs)
+	arm_irq_memory_barrier(irq);
+	irq_active_reg = gic_c_read_4(sc, GICC_IAR);
+	irq = irq_active_reg & 0x3FF;
+	if (irq < sc->nirqs)
 		goto dispatch_irq;
 
 	return (FILTER_HANDLED);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510201515.t9KFFUgC067066>