Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123002
b: refs/heads/master
c: 1ef8014
h: refs/heads/master
v: v3
  • Loading branch information
Sebastien Dugue authored and Paul Mackerras committed Nov 5, 2008
1 parent ea3e1f7 commit 924070f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 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: 691de57679e3f05b708b98ca2ab27657c768843f
refs/heads/master: 1ef8014debb6410ed1960c4477d0006df11157c1
28 changes: 22 additions & 6 deletions trunk/arch/powerpc/platforms/pseries/xics.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ static void xics_update_irq_servers(void)
int i, j;
struct device_node *np;
u32 ilen;
const u32 *ireg, *isize;
const u32 *ireg;
u32 hcpuid;

/* Find the server numbers for the boot cpu. */
Expand Down Expand Up @@ -607,11 +607,6 @@ static void xics_update_irq_servers(void)
}
}

/* get the bit size of server numbers */
isize = of_get_property(np, "ibm,interrupt-server#-size", NULL);
if (isize)
interrupt_server_size = *isize;

of_node_put(np);
}

Expand Down Expand Up @@ -682,6 +677,7 @@ void __init xics_init_IRQ(void)
struct device_node *np;
u32 indx = 0;
int found = 0;
const u32 *isize;

ppc64_boot_msg(0x20, "XICS Init");

Expand All @@ -701,6 +697,26 @@ void __init xics_init_IRQ(void)
if (found == 0)
return;

/* get the bit size of server numbers */
found = 0;

for_each_compatible_node(np, NULL, "ibm,ppc-xics") {
isize = of_get_property(np, "ibm,interrupt-server#-size", NULL);

if (!isize)
continue;

if (!found) {
interrupt_server_size = *isize;
found = 1;
} else if (*isize != interrupt_server_size) {
printk(KERN_WARNING "XICS: "
"mismatched ibm,interrupt-server#-size\n");
interrupt_server_size = max(*isize,
interrupt_server_size);
}
}

xics_update_irq_servers();
xics_init_host();

Expand Down

0 comments on commit 924070f

Please sign in to comment.