Commit 0a8d8fbc authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: Put SMT threads into global interrupt queue

From: David Engebretsen <engebret@us.ibm.com>

Put SMT threads into global interrupt queue
parent 0b29d5e7
......@@ -934,6 +934,7 @@ int __devinit __cpu_up(unsigned int cpu)
return 0;
}
extern unsigned int default_distrib_server;
/* Activate a secondary processor. */
int __devinit start_secondary(void *unused)
{
......@@ -956,6 +957,15 @@ int __devinit start_secondary(void *unused)
if (cur_cpu_spec->firmware_features & FW_FEATURE_SPLPAR) {
vpa_init(cpu);
}
#ifdef CONFIG_IRQ_ALL_CPUS
/* Put the calling processor into the GIQ. This is really only
* necessary from a secondary thread as the OF start-cpu interface
* performs this function for us on primary threads.
*/
/* TODO: 9005 is #defined in rtas-proc.c -- move to a header */
rtas_set_indicator(9005, default_distrib_server, 1);
#endif
#endif
local_irq_enable();
......
......@@ -91,7 +91,8 @@ static struct xics_ipl *xics_per_cpu[NR_CPUS];
static int xics_irq_8259_cascade = 0;
static int xics_irq_8259_cascade_real = 0;
static unsigned int default_server = 0xFF;
static unsigned int default_distrib_server = 0;
/* also referenced in smp.c... */
unsigned int default_distrib_server = 0;
/*
* XICS only has a single IPI, so encode the messages per CPU
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment