Module Name: src
Committed By: martin
Date: Tue Aug 7 13:28:59 UTC 2018
Modified Files:
src/sys/arch/x86/x86 [netbsd-8]: cpu.c
Log Message:
Pull up following revision(s) (requested by maxv in ticket #960):
sys/arch/x86/x86/cpu.c: revision 1.159
Oh. Don't call svs_pdir_switch if SVS is disabled, that's not needed.
I was playing around with PMCs, and was wondering why some cache misses
were occurring in svs_pdir_switch while I had SVS disabled.
To generate a diff of this commit:
cvs rdiff -u -r1.130.2.6 -r1.130.2.7 src/sys/arch/x86/x86/cpu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/cpu.c
diff -u src/sys/arch/x86/x86/cpu.c:1.130.2.6 src/sys/arch/x86/x86/cpu.c:1.130.2.7
--- src/sys/arch/x86/x86/cpu.c:1.130.2.6 Sat Apr 14 10:11:49 2018
+++ src/sys/arch/x86/x86/cpu.c Tue Aug 7 13:28:59 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.130.2.6 2018/04/14 10:11:49 martin Exp $ */
+/* $NetBSD: cpu.c,v 1.130.2.7 2018/08/07 13:28:59 martin Exp $ */
/*-
* Copyright (c) 2000-2012 NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.130.2.6 2018/04/14 10:11:49 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.130.2.7 2018/08/07 13:28:59 martin Exp $");
#include "opt_ddb.h"
#include "opt_mpbios.h" /* for MPDEBUG */
@@ -1265,7 +1265,9 @@ void
cpu_load_pmap(struct pmap *pmap, struct pmap *oldpmap)
{
#ifdef SVS
- svs_pdir_switch(pmap);
+ if (svs_enabled) {
+ svs_pdir_switch(pmap);
+ }
#endif
#ifdef PAE