summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorfsmp <fsmp@FreeBSD.org>1997-08-04 17:31:43 +0000
committerfsmp <fsmp@FreeBSD.org>1997-08-04 17:31:43 +0000
commit10b9d7be19b22feb03c9b6937510f232b92da80f (patch)
treedc09c4bf79bac62ee576031b55efcfec77dec45f /sys/i386/include
parent4811e46aa5c4b7b170547e11f6458a10d784c737 (diff)
downloadFreeBSD-src-10b9d7be19b22feb03c9b6937510f232b92da80f.zip
FreeBSD-src-10b9d7be19b22feb03c9b6937510f232b92da80f.tar.gz
Eliminate frequent silo overflows by restoring the TEST_LOPRIO code.
This code was eliminated when the PEND_INTS algorithm was added. But it was discovered that PEND_INTS only worsen latency for FAST_INTR() routines, which can't be marked pending. Noticed & debugged by: dave adkins <adkin003@gold.tc.umn.edu>
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/apic.h8
-rw-r--r--sys/i386/include/apicreg.h8
-rw-r--r--sys/i386/include/smptests.h8
3 files changed, 19 insertions, 5 deletions
diff --git a/sys/i386/include/apic.h b/sys/i386/include/apic.h
index 8df09cd..50f8416 100644
--- a/sys/i386/include/apic.h
+++ b/sys/i386/include/apic.h
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: apic.h,v 1.6 1997/07/30 22:44:20 smp Exp smp $
+ * $Id: apic.h,v 1.7 1997/08/04 17:20:39 smp Exp smp $
*/
#ifndef _MACHINE_APIC_H_
@@ -221,7 +221,11 @@ typedef struct IOAPIC ioapic_t;
*/
/* default level for TPR */
-#define LOPRIO_LEVEL 0x00000010 /* TPR of CPUs accepting INT */
+#define LOPRIO_LEVEL 0x00000010 /* TPR of CPU accepting INTs */
+
+#ifdef GRAB_LOPRIO
+#define ALLHWI_LEVEL 0x00000000 /* TPR of CPU grabbing INTs */
+#endif /** GRAB_LOPRIO */
/* XXX these 2 don't really belong here... */
#define COUNT_FIELD 0x00ffffff /* count portion of the lock */
diff --git a/sys/i386/include/apicreg.h b/sys/i386/include/apicreg.h
index 8df09cd..50f8416 100644
--- a/sys/i386/include/apicreg.h
+++ b/sys/i386/include/apicreg.h
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: apic.h,v 1.6 1997/07/30 22:44:20 smp Exp smp $
+ * $Id: apic.h,v 1.7 1997/08/04 17:20:39 smp Exp smp $
*/
#ifndef _MACHINE_APIC_H_
@@ -221,7 +221,11 @@ typedef struct IOAPIC ioapic_t;
*/
/* default level for TPR */
-#define LOPRIO_LEVEL 0x00000010 /* TPR of CPUs accepting INT */
+#define LOPRIO_LEVEL 0x00000010 /* TPR of CPU accepting INTs */
+
+#ifdef GRAB_LOPRIO
+#define ALLHWI_LEVEL 0x00000000 /* TPR of CPU grabbing INTs */
+#endif /** GRAB_LOPRIO */
/* XXX these 2 don't really belong here... */
#define COUNT_FIELD 0x00ffffff /* count portion of the lock */
diff --git a/sys/i386/include/smptests.h b/sys/i386/include/smptests.h
index bb44570..09607e2 100644
--- a/sys/i386/include/smptests.h
+++ b/sys/i386/include/smptests.h
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: smptests.h,v 1.19 1997/07/30 22:44:20 smp Exp smp $
+ * $Id: smptests.h,v 1.20 1997/08/04 17:20:39 smp Exp smp $
*/
#ifndef _MACHINE_SMPTESTS_H_
@@ -66,6 +66,12 @@
/*
+ * Portions of the old TEST_LOPRIO code, back from the grave!
+ */
+#define GRAB_LOPRIO
+
+
+/*
* 1st attempt to use the 'ExtInt' connected 8259 to attach 8254 timer.
* failing that, attempt to attach 8254 timer via direct APIC pin.
* failing that, panic!
OpenPOWER on IntegriCloud