From 2fbe601a5d399f71f944deda424da7982df4d006 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 23 Jan 2003 01:01:35 +0000 Subject: [PATCH] Now that TPR isn't bogusly raised at boot, there is no need to clear it at context switch. --- sys/amd64/amd64/cpu_switch.S | 8 -------- sys/amd64/amd64/swtch.s | 8 -------- sys/i386/i386/swtch.s | 8 -------- 3 files changed, 24 deletions(-) diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index 57ba94b3e321..aaf0ec2c2073 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -238,14 +238,6 @@ sw1b: pushl PCB_PSL(%edx) popfl -#if defined(SMP) && defined(GRAB_LOPRIO) - /* Hold LOPRIO for interrupts. */ -#ifdef CHEAP_TPR - movl $0, lapic+LA_TPR -#else - andl $~APIC_TPR_PRIO, lapic+LA_TPR -#endif -#endif movl %edx, PCPU(CURPCB) movl %ecx, PCPU(CURTHREAD) /* into next thread */ diff --git a/sys/amd64/amd64/swtch.s b/sys/amd64/amd64/swtch.s index 57ba94b3e321..aaf0ec2c2073 100644 --- a/sys/amd64/amd64/swtch.s +++ b/sys/amd64/amd64/swtch.s @@ -238,14 +238,6 @@ sw1b: pushl PCB_PSL(%edx) popfl -#if defined(SMP) && defined(GRAB_LOPRIO) - /* Hold LOPRIO for interrupts. */ -#ifdef CHEAP_TPR - movl $0, lapic+LA_TPR -#else - andl $~APIC_TPR_PRIO, lapic+LA_TPR -#endif -#endif movl %edx, PCPU(CURPCB) movl %ecx, PCPU(CURTHREAD) /* into next thread */ diff --git a/sys/i386/i386/swtch.s b/sys/i386/i386/swtch.s index 57ba94b3e321..aaf0ec2c2073 100644 --- a/sys/i386/i386/swtch.s +++ b/sys/i386/i386/swtch.s @@ -238,14 +238,6 @@ sw1b: pushl PCB_PSL(%edx) popfl -#if defined(SMP) && defined(GRAB_LOPRIO) - /* Hold LOPRIO for interrupts. */ -#ifdef CHEAP_TPR - movl $0, lapic+LA_TPR -#else - andl $~APIC_TPR_PRIO, lapic+LA_TPR -#endif -#endif movl %edx, PCPU(CURPCB) movl %ecx, PCPU(CURTHREAD) /* into next thread */