summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire/firewire.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-01-16 13:09:33 +0000
committersimokawa <simokawa@FreeBSD.org>2003-01-16 13:09:33 +0000
commit873e3b0a11f309a23c2183d9e285196e431db1be (patch)
treefbe3405ab5c3412754e3066d13483c37ae80402a /sys/dev/firewire/firewire.c
parenteac0b70cbcd0a15b7393829d3a7cecd161df4b34 (diff)
downloadFreeBSD-src-873e3b0a11f309a23c2183d9e285196e431db1be.zip
FreeBSD-src-873e3b0a11f309a23c2183d9e285196e431db1be.tar.gz
Improve memory allocation.
- Don't use contigmalloc() and allocate page by page to avoid allocation failure. - allocate buffer by PAGE_SIZE.
Diffstat (limited to 'sys/dev/firewire/firewire.c')
-rw-r--r--sys/dev/firewire/firewire.c8
1 files changed, 4 insertions, 4 deletions
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;
OpenPOWER on IntegriCloud