1 Subject: Use kmalloc rather than kzalloc for switch log buffer
2 From: Jeremy Kerr <jk@ozlabs.org>
3 References: 447133 - LTC50070
5 No need to zero the entire buffer, just the head and tail indices.
7 Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
8 Signed-off-by: Olaf Hering <olh@suse.de>
10 arch/powerpc/platforms/cell/spufs/file.c | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
13 --- a/arch/powerpc/platforms/cell/spufs/file.c
14 +++ b/arch/powerpc/platforms/cell/spufs/file.c
15 @@ -2445,7 +2445,7 @@ static int spufs_switch_log_open(struct
19 - ctx->switch_log = kzalloc(sizeof(struct switch_log) +
20 + ctx->switch_log = kmalloc(sizeof(struct switch_log) +
21 SWITCH_LOG_BUFSIZE * sizeof(struct switch_log_entry),
24 @@ -2454,6 +2454,7 @@ static int spufs_switch_log_open(struct
28 + ctx->switch_log->head = ctx->switch_log->tail = 0;
29 init_waitqueue_head(&ctx->switch_log->wait);