From 2618393ec31e8544ddcfe17d9a9838fc922342c0 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 20 Mar 1999 18:44:13 +0000 Subject: [PATCH] Eliminate a pointless TLB flush from the SMP idle loop. Submitted by: Luoqi Chen Reviewed by: "John S. Dyson" --- sys/amd64/amd64/cpu_switch.S | 8 +------- sys/amd64/amd64/swtch.s | 8 +------- sys/i386/i386/swtch.s | 8 +------- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index c2a498d4c39a..f09c0496b434 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: swtch.s,v 1.75 1998/07/28 17:35:09 bde Exp $ + * $Id: swtch.s,v 1.76 1999/03/18 04:22:23 jlemon Exp $ */ #include "npx.h" @@ -317,12 +317,6 @@ _idle: .globl idle_loop idle_loop: -#if defined(SWTCH_OPTIM_STATS) - incl _tlb_flush_count -#endif - movl %cr3,%eax /* ouch! */ - movl %eax,%cr3 - cmpl $0,_smp_active jne 1f cmpl $0,_cpuid diff --git a/sys/amd64/amd64/swtch.s b/sys/amd64/amd64/swtch.s index c2a498d4c39a..f09c0496b434 100644 --- a/sys/amd64/amd64/swtch.s +++ b/sys/amd64/amd64/swtch.s @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: swtch.s,v 1.75 1998/07/28 17:35:09 bde Exp $ + * $Id: swtch.s,v 1.76 1999/03/18 04:22:23 jlemon Exp $ */ #include "npx.h" @@ -317,12 +317,6 @@ _idle: .globl idle_loop idle_loop: -#if defined(SWTCH_OPTIM_STATS) - incl _tlb_flush_count -#endif - movl %cr3,%eax /* ouch! */ - movl %eax,%cr3 - cmpl $0,_smp_active jne 1f cmpl $0,_cpuid diff --git a/sys/i386/i386/swtch.s b/sys/i386/i386/swtch.s index c2a498d4c39a..f09c0496b434 100644 --- a/sys/i386/i386/swtch.s +++ b/sys/i386/i386/swtch.s @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: swtch.s,v 1.75 1998/07/28 17:35:09 bde Exp $ + * $Id: swtch.s,v 1.76 1999/03/18 04:22:23 jlemon Exp $ */ #include "npx.h" @@ -317,12 +317,6 @@ _idle: .globl idle_loop idle_loop: -#if defined(SWTCH_OPTIM_STATS) - incl _tlb_flush_count -#endif - movl %cr3,%eax /* ouch! */ - movl %eax,%cr3 - cmpl $0,_smp_active jne 1f cmpl $0,_cpuid