aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-10-11 15:39:35 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-11 15:39:35 -0400
commit56c5d900dbb8e042bfad035d18433476931d8f93 (patch)
tree00b793965beeef10db03e0ff021d2d965c410759 /arch/sparc64
parent4dd95b63ae25c5cad6986829b5e8788e9faa0330 (diff)
parentead9d23d803ea3a73766c3cb27bf7563ac8d7266 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts: sound/core/memalloc.c
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/kernel/irq.c5
-rw-r--r--arch/sparc64/kernel/of_device.c9
-rw-r--r--arch/sparc64/kernel/pci.c2
-rw-r--r--arch/sparc64/kernel/traps.c3
4 files changed, 10 insertions, 9 deletions
diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c
index 70fdb3bad3a5..52fc836f464d 100644
--- a/arch/sparc64/kernel/irq.c
+++ b/arch/sparc64/kernel/irq.c
@@ -7,6 +7,7 @@
7 7
8#include <linux/module.h> 8#include <linux/module.h>
9#include <linux/sched.h> 9#include <linux/sched.h>
10#include <linux/linkage.h>
10#include <linux/ptrace.h> 11#include <linux/ptrace.h>
11#include <linux/errno.h> 12#include <linux/errno.h>
12#include <linux/kernel_stat.h> 13#include <linux/kernel_stat.h>
@@ -865,7 +866,7 @@ static void kill_prom_timer(void)
865 : "g1", "g2"); 866 : "g1", "g2");
866} 867}
867 868
868void init_irqwork_curcpu(void) 869void notrace init_irqwork_curcpu(void)
869{ 870{
870 int cpu = hard_smp_processor_id(); 871 int cpu = hard_smp_processor_id();
871 872
@@ -896,7 +897,7 @@ static void __cpuinit register_one_mondo(unsigned long paddr, unsigned long type
896 } 897 }
897} 898}
898 899
899void __cpuinit sun4v_register_mondo_queues(int this_cpu) 900void __cpuinit notrace sun4v_register_mondo_queues(int this_cpu)
900{ 901{
901 struct trap_per_cpu *tb = &trap_block[this_cpu]; 902 struct trap_per_cpu *tb = &trap_block[this_cpu];
902 903
diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c
index ef05d14bd7f1..0f616ae3246c 100644
--- a/arch/sparc64/kernel/of_device.c
+++ b/arch/sparc64/kernel/of_device.c
@@ -192,7 +192,7 @@ static unsigned long of_bus_default_get_flags(const u32 *addr, unsigned long fla
192 192
193static int of_bus_pci_match(struct device_node *np) 193static int of_bus_pci_match(struct device_node *np)
194{ 194{
195 if (!strcmp(np->type, "pci") || !strcmp(np->type, "pciex")) { 195 if (!strcmp(np->name, "pci")) {
196 const char *model = of_get_property(np, "model", NULL); 196 const char *model = of_get_property(np, "model", NULL);
197 197
198 if (model && !strcmp(model, "SUNW,simba")) 198 if (model && !strcmp(model, "SUNW,simba"))
@@ -223,7 +223,7 @@ static int of_bus_simba_match(struct device_node *np)
223 /* Treat PCI busses lacking ranges property just like 223 /* Treat PCI busses lacking ranges property just like
224 * simba. 224 * simba.
225 */ 225 */
226 if (!strcmp(np->type, "pci") || !strcmp(np->type, "pciex")) { 226 if (!strcmp(np->name, "pci")) {
227 if (!of_find_property(np, "ranges", NULL)) 227 if (!of_find_property(np, "ranges", NULL))
228 return 1; 228 return 1;
229 } 229 }
@@ -460,7 +460,7 @@ static int __init use_1to1_mapping(struct device_node *pp)
460 * it lacks a ranges property, and this will include 460 * it lacks a ranges property, and this will include
461 * cases like Simba. 461 * cases like Simba.
462 */ 462 */
463 if (!strcmp(pp->type, "pci") || !strcmp(pp->type, "pciex")) 463 if (!strcmp(pp->name, "pci"))
464 return 0; 464 return 0;
465 465
466 return 1; 466 return 1;
@@ -745,8 +745,7 @@ static unsigned int __init build_one_device_irq(struct of_device *op,
745 break; 745 break;
746 } 746 }
747 } else { 747 } else {
748 if (!strcmp(pp->type, "pci") || 748 if (!strcmp(pp->name, "pci")) {
749 !strcmp(pp->type, "pciex")) {
750 unsigned int this_orig_irq = irq; 749 unsigned int this_orig_irq = irq;
751 750
752 irq = pci_irq_swizzle(dp, pp, irq); 751 irq = pci_irq_swizzle(dp, pp, irq);
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c
index e12a0586b43c..242ac1ccae7d 100644
--- a/arch/sparc64/kernel/pci.c
+++ b/arch/sparc64/kernel/pci.c
@@ -323,7 +323,7 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
323 dev->current_state = 4; /* unknown power state */ 323 dev->current_state = 4; /* unknown power state */
324 dev->error_state = pci_channel_io_normal; 324 dev->error_state = pci_channel_io_normal;
325 325
326 if (!strcmp(type, "pci") || !strcmp(type, "pciex")) { 326 if (!strcmp(node->name, "pci")) {
327 /* a PCI-PCI bridge */ 327 /* a PCI-PCI bridge */
328 dev->hdr_type = PCI_HEADER_TYPE_BRIDGE; 328 dev->hdr_type = PCI_HEADER_TYPE_BRIDGE;
329 dev->rom_base_reg = PCI_ROM_ADDRESS1; 329 dev->rom_base_reg = PCI_ROM_ADDRESS1;
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c
index 342da2164239..81ccd22e78d4 100644
--- a/arch/sparc64/kernel/traps.c
+++ b/arch/sparc64/kernel/traps.c
@@ -10,6 +10,7 @@
10 10
11#include <linux/module.h> 11#include <linux/module.h>
12#include <linux/sched.h> 12#include <linux/sched.h>
13#include <linux/linkage.h>
13#include <linux/kernel.h> 14#include <linux/kernel.h>
14#include <linux/signal.h> 15#include <linux/signal.h>
15#include <linux/smp.h> 16#include <linux/smp.h>
@@ -2496,7 +2497,7 @@ struct trap_per_cpu trap_block[NR_CPUS];
2496/* This can get invoked before sched_init() so play it super safe 2497/* This can get invoked before sched_init() so play it super safe
2497 * and use hard_smp_processor_id(). 2498 * and use hard_smp_processor_id().
2498 */ 2499 */
2499void init_cur_cpu_trap(struct thread_info *t) 2500void notrace init_cur_cpu_trap(struct thread_info *t)
2500{ 2501{
2501 int cpu = hard_smp_processor_id(); 2502 int cpu = hard_smp_processor_id();
2502 struct trap_per_cpu *p = &trap_block[cpu]; 2503 struct trap_per_cpu *p = &trap_block[cpu];