Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114610
b: refs/heads/master
c: 302905a
h: refs/heads/master
v: v3
  • Loading branch information
Milton Miller authored and Benjamin Herrenschmidt committed Oct 12, 2008
1 parent 573c54b commit facf883
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8767e9badca7cdf0adc2564d7524092d47ababf3
refs/heads/master: 302905a3473d9a1f00e4b2fe373d2763a041a93d
9 changes: 5 additions & 4 deletions trunk/arch/powerpc/platforms/pseries/xics.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,6 @@ static int get_irq_server(unsigned int virq, unsigned int strict_check)
cpumask_t cpumask = irq_desc[virq].affinity;
cpumask_t tmp = CPU_MASK_NONE;

if (! cpu_isset(default_server, cpu_online_map))
xics_update_irq_servers();

if (!distribute_irqs)
return default_server;

Expand Down Expand Up @@ -685,8 +682,8 @@ void __init xics_init_IRQ(void)
if (found == 0)
return;

xics_init_host();
xics_update_irq_servers();
xics_init_host();

if (firmware_has_feature(FW_FEATURE_LPAR))
ppc_md.get_irq = xics_get_irq_lpar;
Expand Down Expand Up @@ -779,6 +776,10 @@ void xics_migrate_irqs_away(void)
int cpu = smp_processor_id(), hw_cpu = hard_smp_processor_id();
unsigned int irq, virq;

/* If we used to be the default server, move to the new "boot_cpuid" */
if (hw_cpu == default_server)
xics_update_irq_servers();

/* Reject any interrupt that was queued to us... */
xics_set_cpu_priority(0);

Expand Down

0 comments on commit facf883

Please sign in to comment.