summaryrefslogtreecommitdiffstats
path: root/arch/ppc/kernel/smp-tbsync.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-06 21:13:32 +0100
committerPaul Mackerras <paulus@samba.org>2006-03-17 13:20:57 +1100
commitd116fe5aeafd8226712d2de9c69428725ca74474 (patch)
tree5c65b1b18d495ac9d16e875a7a4f99863ffe0edb /arch/ppc/kernel/smp-tbsync.c
parent0f6be7b77ceaea01a35b37fab26f4ea3b01efe14 (diff)
downloadop-kernel-dev-d116fe5aeafd8226712d2de9c69428725ca74474.zip
op-kernel-dev-d116fe5aeafd8226712d2de9c69428725ca74474.tar.gz
[PATCH] kzalloc() conversion in arch/ppc
This converts arch/ppc to kzalloc usage. Crosscompile tested with allyesconfig. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/kernel/smp-tbsync.c')
-rw-r--r--arch/ppc/kernel/smp-tbsync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/ppc/kernel/smp-tbsync.c b/arch/ppc/kernel/smp-tbsync.c
index 2c9cd95..6a5694f 100644
--- a/arch/ppc/kernel/smp-tbsync.c
+++ b/arch/ppc/kernel/smp-tbsync.c
@@ -126,8 +126,7 @@ smp_generic_give_timebase( void )
printk("Synchronizing timebase\n");
/* if this fails then this kernel won't work anyway... */
- tbsync = kmalloc( sizeof(*tbsync), GFP_KERNEL );
- memset( tbsync, 0, sizeof(*tbsync) );
+ tbsync = kzalloc( sizeof(*tbsync), GFP_KERNEL );
mb();
running = 1;
OpenPOWER on IntegriCloud