|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * SMP support for pSeries and BPA machines.
|
|
|
|
|
|
+ * SMP support for pSeries machines.
|
|
*
|
|
*
|
|
* Dave Engebretsen, Peter Bergner, and
|
|
* Dave Engebretsen, Peter Bergner, and
|
|
* Mike Corrigan {engebret|bergner|mikec}@us.ibm.com
|
|
* Mike Corrigan {engebret|bergner|mikec}@us.ibm.com
|
|
@@ -48,8 +48,6 @@
|
|
#include <asm/pSeries_reconfig.h>
|
|
#include <asm/pSeries_reconfig.h>
|
|
#include <asm/mpic.h>
|
|
#include <asm/mpic.h>
|
|
|
|
|
|
-#include "bpa_iic.h"
|
|
|
|
-
|
|
|
|
#ifdef DEBUG
|
|
#ifdef DEBUG
|
|
#define DBG(fmt...) udbg_printf(fmt)
|
|
#define DBG(fmt...) udbg_printf(fmt)
|
|
#else
|
|
#else
|
|
@@ -343,36 +341,6 @@ static void __devinit smp_xics_setup_cpu(int cpu)
|
|
|
|
|
|
}
|
|
}
|
|
#endif /* CONFIG_XICS */
|
|
#endif /* CONFIG_XICS */
|
|
-#ifdef CONFIG_BPA_IIC
|
|
|
|
-static void smp_iic_message_pass(int target, int msg)
|
|
|
|
-{
|
|
|
|
- unsigned int i;
|
|
|
|
-
|
|
|
|
- if (target < NR_CPUS) {
|
|
|
|
- iic_cause_IPI(target, msg);
|
|
|
|
- } else {
|
|
|
|
- for_each_online_cpu(i) {
|
|
|
|
- if (target == MSG_ALL_BUT_SELF
|
|
|
|
- && i == smp_processor_id())
|
|
|
|
- continue;
|
|
|
|
- iic_cause_IPI(i, msg);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static int __init smp_iic_probe(void)
|
|
|
|
-{
|
|
|
|
- iic_request_IPIs();
|
|
|
|
-
|
|
|
|
- return cpus_weight(cpu_possible_map);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static void __devinit smp_iic_setup_cpu(int cpu)
|
|
|
|
-{
|
|
|
|
- if (cpu != boot_cpuid)
|
|
|
|
- iic_setup_cpu();
|
|
|
|
-}
|
|
|
|
-#endif /* CONFIG_BPA_IIC */
|
|
|
|
|
|
|
|
static DEFINE_SPINLOCK(timebase_lock);
|
|
static DEFINE_SPINLOCK(timebase_lock);
|
|
static unsigned long timebase = 0;
|
|
static unsigned long timebase = 0;
|
|
@@ -444,15 +412,6 @@ static struct smp_ops_t pSeries_xics_smp_ops = {
|
|
.cpu_bootable = smp_pSeries_cpu_bootable,
|
|
.cpu_bootable = smp_pSeries_cpu_bootable,
|
|
};
|
|
};
|
|
#endif
|
|
#endif
|
|
-#ifdef CONFIG_BPA_IIC
|
|
|
|
-static struct smp_ops_t bpa_iic_smp_ops = {
|
|
|
|
- .message_pass = smp_iic_message_pass,
|
|
|
|
- .probe = smp_iic_probe,
|
|
|
|
- .kick_cpu = smp_pSeries_kick_cpu,
|
|
|
|
- .setup_cpu = smp_iic_setup_cpu,
|
|
|
|
- .cpu_bootable = smp_pSeries_cpu_bootable,
|
|
|
|
-};
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
/* This is called very early */
|
|
/* This is called very early */
|
|
void __init smp_init_pSeries(void)
|
|
void __init smp_init_pSeries(void)
|
|
@@ -471,11 +430,6 @@ void __init smp_init_pSeries(void)
|
|
case IC_PPC_XIC:
|
|
case IC_PPC_XIC:
|
|
smp_ops = &pSeries_xics_smp_ops;
|
|
smp_ops = &pSeries_xics_smp_ops;
|
|
break;
|
|
break;
|
|
-#endif
|
|
|
|
-#ifdef CONFIG_BPA_IIC
|
|
|
|
- case IC_BPA_IIC:
|
|
|
|
- smp_ops = &bpa_iic_smp_ops;
|
|
|
|
- break;
|
|
|
|
#endif
|
|
#endif
|
|
default:
|
|
default:
|
|
panic("Invalid interrupt controller");
|
|
panic("Invalid interrupt controller");
|