Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/jdolecek-ncq]: src/sys/dev/ic use MVSATA_EDMAQ_LEN instead of magic numb...
details: https://anonhg.NetBSD.org/src/rev/5ec7f57b879f
branches: jdolecek-ncq
changeset: 352670:5ec7f57b879f
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Jun 13 19:15:32 2017 +0000
description:
use MVSATA_EDMAQ_LEN instead of magic number for number of queue slots
diffstat:
sys/dev/ic/mvsata.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8dbb9509bf3d -r 5ec7f57b879f sys/dev/ic/mvsata.c
--- a/sys/dev/ic/mvsata.c Tue Jun 13 00:02:19 2017 +0000
+++ b/sys/dev/ic/mvsata.c Tue Jun 13 19:15:32 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mvsata.c,v 1.35.6.9 2017/06/12 21:38:50 jdolecek Exp $ */
+/* $NetBSD: mvsata.c,v 1.35.6.10 2017/06/13 19:15:32 jdolecek Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.35.6.9 2017/06/12 21:38:50 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.35.6.10 2017/06/13 19:15:32 jdolecek Exp $");
#include "opt_mvsata.h"
@@ -2881,7 +2881,7 @@
chp = &mvport->port_ata_channel;
chp->ch_channel = channel;
chp->ch_atac = &sc->sc_wdcdev.sc_atac;
- chp->ch_queue = ata_queue_alloc(32);
+ chp->ch_queue = ata_queue_alloc(MVSATA_EDMAQ_LEN);
sc->sc_ata_channels[channel] = chp;
rv = mvsata_wdc_reg_init(mvport, sc->sc_wdcdev.regs + channel);
Home |
Main Index |
Thread Index |
Old Index