Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
sparc64: Fix SMP bootup with CONFIG_STACK_DEBUG or ftrace.
sparc64: Fix OOPS in psycho_pcierr_intr_other().

+10 -6
+3 -2
arch/sparc64/kernel/irq.c
··· 7 7 8 8 #include <linux/module.h> 9 9 #include <linux/sched.h> 10 + #include <linux/linkage.h> 10 11 #include <linux/ptrace.h> 11 12 #include <linux/errno.h> 12 13 #include <linux/kernel_stat.h> ··· 867 866 : "g1", "g2"); 868 867 } 869 868 870 - void init_irqwork_curcpu(void) 869 + void notrace init_irqwork_curcpu(void) 871 870 { 872 871 int cpu = hard_smp_processor_id(); 873 872 ··· 898 897 } 899 898 } 900 899 901 - void __cpuinit sun4v_register_mondo_queues(int this_cpu) 900 + void __cpuinit notrace sun4v_register_mondo_queues(int this_cpu) 902 901 { 903 902 struct trap_per_cpu *tb = &trap_block[this_cpu]; 904 903
+5 -3
arch/sparc64/kernel/pci_psycho.c
··· 575 575 { 576 576 unsigned long csr_reg, csr, csr_error_bits; 577 577 irqreturn_t ret = IRQ_NONE; 578 - u16 stat; 578 + u16 stat, *addr; 579 579 580 580 if (is_pbm_a) { 581 581 csr_reg = pbm->controller_regs + PSYCHO_PCIA_CTRL; ··· 597 597 printk("%s: PCI SERR signal asserted.\n", pbm->name); 598 598 ret = IRQ_HANDLED; 599 599 } 600 - pci_read_config_word(pbm->pci_bus->self, PCI_STATUS, &stat); 600 + addr = psycho_pci_config_mkaddr(pbm, pbm->pci_first_busno, 601 + 0, PCI_STATUS); 602 + pci_config_read16(addr, &stat); 601 603 if (stat & (PCI_STATUS_PARITY | 602 604 PCI_STATUS_SIG_TARGET_ABORT | 603 605 PCI_STATUS_REC_TARGET_ABORT | ··· 607 605 PCI_STATUS_SIG_SYSTEM_ERROR)) { 608 606 printk("%s: PCI bus error, PCI_STATUS[%04x]\n", 609 607 pbm->name, stat); 610 - pci_write_config_word(pbm->pci_bus->self, PCI_STATUS, 0xffff); 608 + pci_config_write16(addr, 0xffff); 611 609 ret = IRQ_HANDLED; 612 610 } 613 611 return ret;
+2 -1
arch/sparc64/kernel/traps.c
··· 10 10 11 11 #include <linux/module.h> 12 12 #include <linux/sched.h> 13 + #include <linux/linkage.h> 13 14 #include <linux/kernel.h> 14 15 #include <linux/signal.h> 15 16 #include <linux/smp.h> ··· 2454 2453 /* This can get invoked before sched_init() so play it super safe 2455 2454 * and use hard_smp_processor_id(). 2456 2455 */ 2457 - void init_cur_cpu_trap(struct thread_info *t) 2456 + void notrace init_cur_cpu_trap(struct thread_info *t) 2458 2457 { 2459 2458 int cpu = hard_smp_processor_id(); 2460 2459 struct trap_per_cpu *p = &trap_block[cpu];