Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/arch/x86/x86 Pull up following revision(s) (requested...
details: https://anonhg.NetBSD.org/src/rev/b9976a5637b8
branches: netbsd-8
changeset: 851916:b9976a5637b8
user: martin <martin%NetBSD.org@localhost>
date: Tue Aug 07 13:28:59 2018 +0000
description:
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.
diffstat:
sys/arch/x86/x86/cpu.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r eaea4668824c -r b9976a5637b8 sys/arch/x86/x86/cpu.c
--- a/sys/arch/x86/x86/cpu.c Tue Aug 07 13:24:59 2018 +0000
+++ b/sys/arch/x86/x86/cpu.c Tue Aug 07 13:28:59 2018 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index