Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev UVM_ADV_NORMAL-> UVM_ADV_RANDOM as this reflects the...
details: https://anonhg.NetBSD.org/src/rev/367fd241b8e4
branches: trunk
changeset: 353559:367fd241b8e4
user: nat <nat%NetBSD.org@localhost>
date: Thu May 11 23:39:15 2017 +0000
description:
UVM_ADV_NORMAL-> UVM_ADV_RANDOM as this reflects the usage more acurately.
Ok riastradh@.
diffstat:
sys/dev/audio.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r b2658eff387e -r 367fd241b8e4 sys/dev/audio.c
--- a/sys/dev/audio.c Thu May 11 23:32:27 2017 +0000
+++ b/sys/dev/audio.c Thu May 11 23:39:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.340 2017/05/11 23:32:27 nat Exp $ */
+/* $NetBSD: audio.c,v 1.341 2017/05/11 23:39:15 nat Exp $ */
/*-
* Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.340 2017/05/11 23:32:27 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.341 2017/05/11 23:39:15 nat Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -1212,7 +1212,7 @@
/* Map it into the kernel virtual address space. */
error = uvm_map(kernel_map, &vstart, vsize, r->uobj, 0, 0,
UVM_MAPFLAG(UVM_PROT_RW, UVM_PROT_RW, UVM_INH_NONE,
- UVM_ADV_NORMAL, 0));
+ UVM_ADV_RANDOM, 0));
if (error) {
uao_detach(r->uobj); /* release reference */
r->uobj = NULL; /* paranoia */
@@ -3456,7 +3456,7 @@
/* Acquire a reference for the mmap. munmap will release.*/
uao_reference(*uobjp);
*maxprotp = prot;
- *advicep = UVM_ADV_NORMAL;
+ *advicep = UVM_ADV_RANDOM;
*flagsp = MAP_SHARED;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index