diff options
author | simokawa <simokawa@FreeBSD.org> | 2003-01-16 13:09:33 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2003-01-16 13:09:33 +0000 |
commit | 873e3b0a11f309a23c2183d9e285196e431db1be (patch) | |
tree | fbe3405ab5c3412754e3066d13483c37ae80402a /sys/dev/firewire/firewire.c | |
parent | eac0b70cbcd0a15b7393829d3a7cecd161df4b34 (diff) | |
download | FreeBSD-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.c | 8 |
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; |