summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-01-23 01:03:34 +0000
committerpeter <peter@FreeBSD.org>2003-01-23 01:03:34 +0000
commit77bd829d9ff192d520177030ac0506b0b4dd6aeb (patch)
treeef739db6fc2cc5808d54bcd431361577584c4a12 /sys
parent062887dc669d70e3e3f0a46869a8cfb50117b096 (diff)
downloadFreeBSD-src-77bd829d9ff192d520177030ac0506b0b4dd6aeb.zip
FreeBSD-src-77bd829d9ff192d520177030ac0506b0b4dd6aeb.tar.gz
Nuke CHEAP_TPR stuff, including LOPRIO_LEVEL (bogus) and ALLHWI_LEVEL
(which we never used). There is no need to tweak the TPR anymore and only causes problems.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/include/apicreg.h17
-rw-r--r--sys/i386/include/apic.h17
-rw-r--r--sys/i386/include/apicreg.h17
3 files changed, 0 insertions, 51 deletions
diff --git a/sys/amd64/include/apicreg.h b/sys/amd64/include/apicreg.h
index 70b8011..4acdeee 100644
--- a/sys/amd64/include/apicreg.h
+++ b/sys/amd64/include/apicreg.h
@@ -214,23 +214,6 @@ typedef struct IOAPIC ioapic_t;
* various code 'logical' values
*/
-/* default level for TPR */
-#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 This code assummes that the reserved field of the
- * local APIC TPR can be written with all 0s.
- * This saves quite a few memory accesses.
- * If the silicon ever changes then things will break!
- * It affects mplock.s, swtch.s, and possibly other files.
- */
-#define CHEAP_TPR
-
-
/******************************************************************************
* LOCAL APIC defines
*/
diff --git a/sys/i386/include/apic.h b/sys/i386/include/apic.h
index 70b8011..4acdeee 100644
--- a/sys/i386/include/apic.h
+++ b/sys/i386/include/apic.h
@@ -214,23 +214,6 @@ typedef struct IOAPIC ioapic_t;
* various code 'logical' values
*/
-/* default level for TPR */
-#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 This code assummes that the reserved field of the
- * local APIC TPR can be written with all 0s.
- * This saves quite a few memory accesses.
- * If the silicon ever changes then things will break!
- * It affects mplock.s, swtch.s, and possibly other files.
- */
-#define CHEAP_TPR
-
-
/******************************************************************************
* LOCAL APIC defines
*/
diff --git a/sys/i386/include/apicreg.h b/sys/i386/include/apicreg.h
index 70b8011..4acdeee 100644
--- a/sys/i386/include/apicreg.h
+++ b/sys/i386/include/apicreg.h
@@ -214,23 +214,6 @@ typedef struct IOAPIC ioapic_t;
* various code 'logical' values
*/
-/* default level for TPR */
-#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 This code assummes that the reserved field of the
- * local APIC TPR can be written with all 0s.
- * This saves quite a few memory accesses.
- * If the silicon ever changes then things will break!
- * It affects mplock.s, swtch.s, and possibly other files.
- */
-#define CHEAP_TPR
-
-
/******************************************************************************
* LOCAL APIC defines
*/
OpenPOWER on IntegriCloud