diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /arch/arm/kernel | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'arch/arm/kernel')
| -rw-r--r-- | arch/arm/kernel/apm.c | 4 | ||||
| -rw-r--r-- | arch/arm/kernel/bios32.c | 4 | ||||
| -rw-r--r-- | arch/arm/kernel/debug.S | 1 | ||||
| -rw-r--r-- | arch/arm/kernel/ecard.c | 4 | ||||
| -rw-r--r-- | arch/arm/kernel/entry-armv.S | 2 | ||||
| -rw-r--r-- | arch/arm/kernel/head.S | 7 | ||||
| -rw-r--r-- | arch/arm/kernel/irq.c | 11 |
7 files changed, 15 insertions, 18 deletions
diff --git a/arch/arm/kernel/apm.c b/arch/arm/kernel/apm.c index 766b6c05c6db..2bed290fec76 100644 --- a/arch/arm/kernel/apm.c +++ b/arch/arm/kernel/apm.c | |||
| @@ -357,10 +357,8 @@ static int apm_open(struct inode * inode, struct file * filp) | |||
| 357 | { | 357 | { |
| 358 | struct apm_user *as; | 358 | struct apm_user *as; |
| 359 | 359 | ||
| 360 | as = (struct apm_user *)kmalloc(sizeof(*as), GFP_KERNEL); | 360 | as = (struct apm_user *)kzalloc(sizeof(*as), GFP_KERNEL); |
| 361 | if (as) { | 361 | if (as) { |
| 362 | memset(as, 0, sizeof(*as)); | ||
| 363 | |||
| 364 | /* | 362 | /* |
| 365 | * XXX - this is a tiny bit broken, when we consider BSD | 363 | * XXX - this is a tiny bit broken, when we consider BSD |
| 366 | * process accounting. If the device is opened by root, we | 364 | * process accounting. If the device is opened by root, we |
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index c4923fac8dff..de606dfa8db9 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c | |||
| @@ -540,12 +540,10 @@ static void __init pcibios_init_hw(struct hw_pci *hw) | |||
| 540 | int nr, busnr; | 540 | int nr, busnr; |
| 541 | 541 | ||
| 542 | for (nr = busnr = 0; nr < hw->nr_controllers; nr++) { | 542 | for (nr = busnr = 0; nr < hw->nr_controllers; nr++) { |
| 543 | sys = kmalloc(sizeof(struct pci_sys_data), GFP_KERNEL); | 543 | sys = kzalloc(sizeof(struct pci_sys_data), GFP_KERNEL); |
| 544 | if (!sys) | 544 | if (!sys) |
| 545 | panic("PCI: unable to allocate sys data!"); | 545 | panic("PCI: unable to allocate sys data!"); |
| 546 | 546 | ||
| 547 | memset(sys, 0, sizeof(struct pci_sys_data)); | ||
| 548 | |||
| 549 | sys->hw = hw; | 547 | sys->hw = hw; |
| 550 | sys->busnr = busnr; | 548 | sys->busnr = busnr; |
| 551 | sys->swizzle = hw->swizzle; | 549 | sys->swizzle = hw->swizzle; |
diff --git a/arch/arm/kernel/debug.S b/arch/arm/kernel/debug.S index caaa919ab47a..da280bae3d07 100644 --- a/arch/arm/kernel/debug.S +++ b/arch/arm/kernel/debug.S | |||
| @@ -11,7 +11,6 @@ | |||
| 11 | */ | 11 | */ |
| 12 | #include <linux/config.h> | 12 | #include <linux/config.h> |
| 13 | #include <linux/linkage.h> | 13 | #include <linux/linkage.h> |
| 14 | #include <asm/hardware.h> | ||
| 15 | 14 | ||
| 16 | .text | 15 | .text |
| 17 | 16 | ||
diff --git a/arch/arm/kernel/ecard.c b/arch/arm/kernel/ecard.c index 74ea29c3205e..00aa225e8d95 100644 --- a/arch/arm/kernel/ecard.c +++ b/arch/arm/kernel/ecard.c | |||
| @@ -807,14 +807,12 @@ static struct expansion_card *__init ecard_alloc_card(int type, int slot) | |||
| 807 | unsigned long base; | 807 | unsigned long base; |
| 808 | int i; | 808 | int i; |
| 809 | 809 | ||
| 810 | ec = kmalloc(sizeof(ecard_t), GFP_KERNEL); | 810 | ec = kzalloc(sizeof(ecard_t), GFP_KERNEL); |
| 811 | if (!ec) { | 811 | if (!ec) { |
| 812 | ec = ERR_PTR(-ENOMEM); | 812 | ec = ERR_PTR(-ENOMEM); |
| 813 | goto nomem; | 813 | goto nomem; |
| 814 | } | 814 | } |
| 815 | 815 | ||
| 816 | memset(ec, 0, sizeof(ecard_t)); | ||
| 817 | |||
| 818 | ec->slot_no = slot; | 816 | ec->slot_no = slot; |
| 819 | ec->type = type; | 817 | ec->type = type; |
| 820 | ec->irq = NO_IRQ; | 818 | ec->irq = NO_IRQ; |
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index ec48d70c6d8b..355914ffb192 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S | |||
| @@ -484,7 +484,6 @@ call_fpe: | |||
| 484 | movcss r7, r5, lsr #(TIF_USING_IWMMXT + 1) | 484 | movcss r7, r5, lsr #(TIF_USING_IWMMXT + 1) |
| 485 | bcs iwmmxt_task_enable | 485 | bcs iwmmxt_task_enable |
| 486 | #endif | 486 | #endif |
| 487 | enable_irq | ||
| 488 | add pc, pc, r8, lsr #6 | 487 | add pc, pc, r8, lsr #6 |
| 489 | mov r0, r0 | 488 | mov r0, r0 |
| 490 | 489 | ||
| @@ -511,6 +510,7 @@ call_fpe: | |||
| 511 | mov pc, lr @ CP#15 (Control) | 510 | mov pc, lr @ CP#15 (Control) |
| 512 | 511 | ||
| 513 | do_fpe: | 512 | do_fpe: |
| 513 | enable_irq | ||
| 514 | ldr r4, .LCfp | 514 | ldr r4, .LCfp |
| 515 | add r10, r10, #TI_FPSTATE @ r10 = workspace | 515 | add r10, r10, #TI_FPSTATE @ r10 = workspace |
| 516 | ldr pc, [r4] @ Call FP module USR entry point | 516 | ldr pc, [r4] @ Call FP module USR entry point |
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index 1aca1775b28f..84277fe818a1 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S | |||
| @@ -28,10 +28,9 @@ | |||
| 28 | #define PROCINFO_INITFUNC 12 | 28 | #define PROCINFO_INITFUNC 12 |
| 29 | 29 | ||
| 30 | #define MACHINFO_TYPE 0 | 30 | #define MACHINFO_TYPE 0 |
| 31 | #define MACHINFO_PHYSRAM 4 | 31 | #define MACHINFO_PHYSIO 4 |
| 32 | #define MACHINFO_PHYSIO 8 | 32 | #define MACHINFO_PGOFFIO 8 |
| 33 | #define MACHINFO_PGOFFIO 12 | 33 | #define MACHINFO_NAME 12 |
| 34 | #define MACHINFO_NAME 16 | ||
| 35 | 34 | ||
| 36 | #define KERNEL_RAM_ADDR (PAGE_OFFSET + TEXT_OFFSET) | 35 | #define KERNEL_RAM_ADDR (PAGE_OFFSET + TEXT_OFFSET) |
| 37 | 36 | ||
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 1d50d2b98f55..2d5896b36181 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c | |||
| @@ -305,14 +305,19 @@ report_bad_irq(unsigned int irq, struct pt_regs *regs, struct irqdesc *desc, int | |||
| 305 | static int count = 100; | 305 | static int count = 100; |
| 306 | struct irqaction *action; | 306 | struct irqaction *action; |
| 307 | 307 | ||
| 308 | if (!count || noirqdebug) | 308 | if (noirqdebug) |
| 309 | return; | 309 | return; |
| 310 | 310 | ||
| 311 | count--; | ||
| 312 | |||
| 313 | if (ret != IRQ_HANDLED && ret != IRQ_NONE) { | 311 | if (ret != IRQ_HANDLED && ret != IRQ_NONE) { |
| 312 | if (!count) | ||
| 313 | return; | ||
| 314 | count--; | ||
| 314 | printk("irq%u: bogus retval mask %x\n", irq, ret); | 315 | printk("irq%u: bogus retval mask %x\n", irq, ret); |
| 315 | } else { | 316 | } else { |
| 317 | desc->irqs_unhandled++; | ||
| 318 | if (desc->irqs_unhandled <= 99900) | ||
| 319 | return; | ||
| 320 | desc->irqs_unhandled = 0; | ||
| 316 | printk("irq%u: nobody cared\n", irq); | 321 | printk("irq%u: nobody cared\n", irq); |
| 317 | } | 322 | } |
| 318 | show_regs(regs); | 323 | show_regs(regs); |
