Kumar Gala
85355bb272
powerpc: Fix mpic alloc warning
...
Since we can use kmalloc earlier we are getting the following since the
mpic_alloc() code calls alloc_bootmem(). Move to using kzalloc() to
remove the warning.
------------[ cut here ]------------
Badness at c0583248 [verbose debug info unavailable]
NIP: c0583248 LR: c0583210 CTR: 00000004
REGS: c0741de0 TRAP: 0700 Not tainted (2.6.30-06736-g12a31df)
MSR: 00021000 <ME,CE> CR: 22024024 XER: 00000000
TASK = c070d3b8[0] 'swapper' THREAD: c0740000 CPU: 0
<6>GPR00: 00000001 c0741e90 c070d3b8 00000001 00000210 00000020 3fffffff 00000000
<6>GPR08: 00000000 c0c85700 c04f8c40 0000002d 22044022 1004a388 7ffd9400 00000000
<6>GPR16: 00000000 7ffcd100 7ffcd100 7ffcd100 c04f8c40 00000000 c059f62c c075a0c0
<6>GPR24: c059f648 00000000 0000000f 00000210 00000020 00000000 3fffffff 00000210
NIP [c0583248] alloc_arch_preferred_bootmem+0x50/0x80
LR [c0583210] alloc_arch_preferred_bootmem+0x18/0x80
Call Trace:
[c0741e90] [c07343b0] devtree_lock+0x0/0x24 (unreliable)
[c0741ea0] [c0583b14] ___alloc_bootmem_nopanic+0x54/0x108
[c0741ee0] [c0583e18] ___alloc_bootmem+0x18/0x50
[c0741ef0] [c057b9cc] mpic_alloc+0x48/0x710
[c0741f40] [c057ecf4] mpc85xx_ds_pic_init+0x190/0x1b8
[c0741f90] [c057633c] init_IRQ+0x24/0x34
[c0741fa0] [c05738b8] start_kernel+0x260/0x3dc
[c0741ff0] [c00003c8] skpinv+0x2e0/0x31c
Instruction dump:
409e001c 7c030378 80010014 83e1000c 38210010 7c0803a6 4e800020 3d20c0c8
39295700 80090004 7c000034 5400d97e <0f000000> 2f800000 409e001c 38800000
BenH: Changed to use GFP_KERNEL, the allocator will do the right thing
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-06-26 14:37:24 +10:00
..
2009-03-30 15:22:01 +02:00
2009-05-19 00:50:24 -05:00
2008-05-16 23:22:28 +10:00
2009-05-22 23:22:54 +02:00
2009-03-30 22:05:14 +10:30
2009-02-06 10:44:02 -06:00
2009-05-19 00:47:19 -05:00
2009-03-24 13:47:33 +11:00
2008-07-25 15:44:43 +10:00
2008-12-21 14:21:15 +11:00
2008-12-21 14:21:16 +11:00
2008-06-10 10:38:50 -05:00
2009-04-06 07:17:09 -07:00
2009-05-19 00:50:38 -05:00
2008-08-20 16:34:58 +10:00
2009-05-21 15:44:22 +10:00
2009-05-19 00:50:44 -05:00
2009-05-19 00:50:40 -05:00
2009-05-19 00:46:18 -05:00
2009-04-01 08:59:23 -07:00
2008-12-16 15:53:16 +11:00
2008-06-09 13:51:16 +10:00
2009-05-21 15:44:22 +10:00
2009-03-09 09:25:35 -05:00
2007-12-12 01:53:07 -06:00
2008-09-23 23:36:32 -05:00
2009-06-17 00:30:22 -06:00
2008-01-28 08:31:05 -06:00
2007-12-20 16:15:51 +11:00
2009-06-17 00:30:22 -06:00
2008-02-06 22:06:59 +11:00
2008-09-23 10:41:16 -05:00
2008-08-20 16:34:58 +10:00
2008-08-20 16:34:58 +10:00
2008-08-20 16:34:58 +10:00
2009-06-26 14:37:24 +10:00
2009-05-06 07:55:33 +02:00
2009-03-24 13:47:28 +11:00
2008-09-05 06:33:59 +02:00
2008-04-15 21:21:24 +10:00
2008-04-15 21:21:24 +10:00
2008-04-24 20:57:34 +10:00
2008-01-25 07:07:26 -06:00
2009-03-24 13:47:30 +11:00
2008-10-17 13:33:44 -04:00
2009-05-21 15:44:23 +10:00
2008-03-26 07:19:16 -05:00
2008-04-02 20:44:56 -05:00
2008-07-28 08:47:38 -05:00
2008-12-30 11:13:45 -06:00
2008-12-30 11:13:45 -06:00
2008-04-01 20:43:09 +11:00
2009-05-21 15:44:23 +10:00
2008-06-09 13:51:16 +10:00
2009-06-06 10:15:24 -06:00
2009-06-06 10:14:22 -06:00