projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f027faa
)
powerpc/spufs: Use kmalloc rather than kzalloc for switch log buffer
author
Jeremy Kerr
<jk@ozlabs.org>
Fri, 17 Oct 2008 01:02:31 +0000
(12:02 +1100)
committer
Jeremy Kerr
<jk@ozlabs.org>
Tue, 21 Oct 2008 00:13:54 +0000
(11:13 +1100)
No need to zero the entire buffer, just the head and tail indices.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/file.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/cell/spufs/file.c
b/arch/powerpc/platforms/cell/spufs/file.c
index b6f7b917b56c6a4636517b8996120af7941597d1..b73c369cc6f167a4fa52c9162cfed557c9c1bba0 100644
(file)
--- a/
arch/powerpc/platforms/cell/spufs/file.c
+++ b/
arch/powerpc/platforms/cell/spufs/file.c
@@
-2442,7
+2442,7
@@
static int spufs_switch_log_open(struct inode *inode, struct file *file)
goto out;
}
- ctx->switch_log = k
z
alloc(sizeof(struct switch_log) +
+ ctx->switch_log = k
m
alloc(sizeof(struct switch_log) +
SWITCH_LOG_BUFSIZE * sizeof(struct switch_log_entry),
GFP_KERNEL);
@@
-2451,6
+2451,7
@@
static int spufs_switch_log_open(struct inode *inode, struct file *file)
goto out;
}
+ ctx->switch_log->head = ctx->switch_log->tail = 0;
init_waitqueue_head(&ctx->switch_log->wait);
rc = 0;