From 873e3b0a11f309a23c2183d9e285196e431db1be Mon Sep 17 00:00:00 2001 From: simokawa Date: Thu, 16 Jan 2003 13:09:33 +0000 Subject: Improve memory allocation. - Don't use contigmalloc() and allocate page by page to avoid allocation failure. - allocate buffer by PAGE_SIZE. --- sys/dev/firewire/firewire.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/firewire/firewire.c') diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c index 89f4598..e0dbad1 100644 --- a/sys/dev/firewire/firewire.c +++ b/sys/dev/firewire/firewire.c @@ -698,10 +698,10 @@ void fw_init(struct firewire_comm *fc) fc->atq->queued = 0; fc->ats->queued = 0; - fc->arq->psize = FWPMAX_S400; - fc->ars->psize = FWPMAX_S400; - fc->atq->psize = FWPMAX_S400; - fc->ats->psize = FWPMAX_S400; + fc->arq->psize = PAGE_SIZE; + fc->ars->psize = PAGE_SIZE; + fc->atq->psize = 0; + fc->ats->psize = 0; fc->arq->buf = NULL; -- cgit v1.1