diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-12-03 06:54:45 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-12-03 06:54:45 -0500 |
| commit | c36910c147fd7b129a8f1269c76b9767c99de5cd (patch) | |
| tree | 29403cd341b62581718f6b34944271980fb133e6 /arch/powerpc/sysdev | |
| parent | 70d7d357578245f1993fd2d3ccd26088bcd38941 (diff) | |
| parent | 09ee17eb8ea89514c13980c4010bdbbaea8630c2 (diff) | |
Merge branch 'iommu-fixes-2.6.28' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu into x86/urgent
Diffstat (limited to 'arch/powerpc/sysdev')
| -rw-r--r-- | arch/powerpc/sysdev/bestcomm/Kconfig | 9 | ||||
| -rw-r--r-- | arch/powerpc/sysdev/mpic.c | 9 | ||||
| -rw-r--r-- | arch/powerpc/sysdev/xilinx_intc.c | 4 |
3 files changed, 12 insertions, 10 deletions
diff --git a/arch/powerpc/sysdev/bestcomm/Kconfig b/arch/powerpc/sysdev/bestcomm/Kconfig index 57cc56562567..0b192a1c429d 100644 --- a/arch/powerpc/sysdev/bestcomm/Kconfig +++ b/arch/powerpc/sysdev/bestcomm/Kconfig | |||
| @@ -17,23 +17,20 @@ config PPC_BESTCOMM | |||
| 17 | answer Y or M. Otherwise say N. | 17 | answer Y or M. Otherwise say N. |
| 18 | 18 | ||
| 19 | config PPC_BESTCOMM_ATA | 19 | config PPC_BESTCOMM_ATA |
| 20 | tristate "Bestcomm ATA task support" | 20 | tristate |
| 21 | depends on PPC_BESTCOMM | 21 | depends on PPC_BESTCOMM |
| 22 | default n | ||
| 23 | help | 22 | help |
| 24 | This option enables the support for the ATA task. | 23 | This option enables the support for the ATA task. |
| 25 | 24 | ||
| 26 | config PPC_BESTCOMM_FEC | 25 | config PPC_BESTCOMM_FEC |
| 27 | tristate "Bestcomm FEC tasks support" | 26 | tristate |
| 28 | depends on PPC_BESTCOMM | 27 | depends on PPC_BESTCOMM |
| 29 | default n | ||
| 30 | help | 28 | help |
| 31 | This option enables the support for the FEC tasks. | 29 | This option enables the support for the FEC tasks. |
| 32 | 30 | ||
| 33 | config PPC_BESTCOMM_GEN_BD | 31 | config PPC_BESTCOMM_GEN_BD |
| 34 | tristate "Bestcomm GenBD tasks support" | 32 | tristate |
| 35 | depends on PPC_BESTCOMM | 33 | depends on PPC_BESTCOMM |
| 36 | default n | ||
| 37 | help | 34 | help |
| 38 | This option enables the support for the GenBD tasks. | 35 | This option enables the support for the GenBD tasks. |
| 39 | 36 | ||
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index f6299cca7814..b24e1d085557 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sysdev/mpic.c | |||
| @@ -1271,6 +1271,7 @@ void __init mpic_set_default_senses(struct mpic *mpic, u8 *senses, int count) | |||
| 1271 | void __init mpic_init(struct mpic *mpic) | 1271 | void __init mpic_init(struct mpic *mpic) |
| 1272 | { | 1272 | { |
| 1273 | int i; | 1273 | int i; |
| 1274 | int cpu; | ||
| 1274 | 1275 | ||
| 1275 | BUG_ON(mpic->num_sources == 0); | 1276 | BUG_ON(mpic->num_sources == 0); |
| 1276 | 1277 | ||
| @@ -1313,6 +1314,11 @@ void __init mpic_init(struct mpic *mpic) | |||
| 1313 | 1314 | ||
| 1314 | mpic_pasemi_msi_init(mpic); | 1315 | mpic_pasemi_msi_init(mpic); |
| 1315 | 1316 | ||
| 1317 | if (mpic->flags & MPIC_PRIMARY) | ||
| 1318 | cpu = hard_smp_processor_id(); | ||
| 1319 | else | ||
| 1320 | cpu = 0; | ||
| 1321 | |||
| 1316 | for (i = 0; i < mpic->num_sources; i++) { | 1322 | for (i = 0; i < mpic->num_sources; i++) { |
| 1317 | /* start with vector = source number, and masked */ | 1323 | /* start with vector = source number, and masked */ |
| 1318 | u32 vecpri = MPIC_VECPRI_MASK | i | | 1324 | u32 vecpri = MPIC_VECPRI_MASK | i | |
| @@ -1323,8 +1329,7 @@ void __init mpic_init(struct mpic *mpic) | |||
| 1323 | continue; | 1329 | continue; |
| 1324 | /* init hw */ | 1330 | /* init hw */ |
| 1325 | mpic_irq_write(i, MPIC_INFO(IRQ_VECTOR_PRI), vecpri); | 1331 | mpic_irq_write(i, MPIC_INFO(IRQ_VECTOR_PRI), vecpri); |
| 1326 | mpic_irq_write(i, MPIC_INFO(IRQ_DESTINATION), | 1332 | mpic_irq_write(i, MPIC_INFO(IRQ_DESTINATION), 1 << cpu); |
| 1327 | 1 << hard_smp_processor_id()); | ||
| 1328 | } | 1333 | } |
| 1329 | 1334 | ||
| 1330 | /* Init spurious vector */ | 1335 | /* Init spurious vector */ |
diff --git a/arch/powerpc/sysdev/xilinx_intc.c b/arch/powerpc/sysdev/xilinx_intc.c index b7aefd0d45cb..a22e1a2df1af 100644 --- a/arch/powerpc/sysdev/xilinx_intc.c +++ b/arch/powerpc/sysdev/xilinx_intc.c | |||
| @@ -107,8 +107,8 @@ xilinx_intc_init(struct device_node *np) | |||
| 107 | } | 107 | } |
| 108 | regs = ioremap(res.start, 32); | 108 | regs = ioremap(res.start, 32); |
| 109 | 109 | ||
| 110 | printk(KERN_INFO "Xilinx intc at 0x%08LX mapped to 0x%p\n", | 110 | printk(KERN_INFO "Xilinx intc at 0x%08llx mapped to 0x%p\n", |
| 111 | res.start, regs); | 111 | (unsigned long long) res.start, regs); |
| 112 | 112 | ||
| 113 | /* Setup interrupt controller */ | 113 | /* Setup interrupt controller */ |
| 114 | out_be32(regs + XINTC_IER, 0); /* disable all irqs */ | 114 | out_be32(regs + XINTC_IER, 0); /* disable all irqs */ |
