Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci pool_cache_prime, not pool_cache_lowat, as sugge...
details: https://anonhg.NetBSD.org/src/rev/ca2587497445
branches: trunk
changeset: 932917:ca2587497445
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun May 17 16:01:06 2020 +0000
description:
pool_cache_prime, not pool_cache_lowat, as suggested by nick.
diffstat:
sys/dev/pci/hifn7751.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4b2a5621b8e9 -r ca2587497445 sys/dev/pci/hifn7751.c
--- a/sys/dev/pci/hifn7751.c Sun May 17 15:42:10 2020 +0000
+++ b/sys/dev/pci/hifn7751.c Sun May 17 16:01:06 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hifn7751.c,v 1.73 2020/05/17 15:42:10 riastradh Exp $ */
+/* $NetBSD: hifn7751.c,v 1.74 2020/05/17 16:01:06 riastradh Exp $ */
/* $OpenBSD: hifn7751.c,v 1.179 2020/01/11 21:34:03 cheloha Exp $ */
/*
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.73 2020/05/17 15:42:10 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.74 2020/05/17 16:01:06 riastradh Exp $");
#include <sys/param.h>
#include <sys/cprng.h>
@@ -405,7 +405,7 @@
sc->sc_cmd_cache = pool_cache_init(sizeof(struct hifn_command),
0, 0, 0, "hifncmd", NULL, IPL_VM,
&hifn_cmd_ctor, &hifn_cmd_dtor, sc);
- pool_cache_setlowat(sc->sc_cmd_cache, sc->sc_maxses);
+ pool_cache_prime(sc->sc_cmd_cache, sc->sc_maxses);
WRITE_REG_0(sc, HIFN_0_PUCNFG,
READ_REG_0(sc, HIFN_0_PUCNFG) | HIFN_PUCNFG_CHIPID);
Home |
Main Index |
Thread Index |
Old Index