Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62234
b: refs/heads/master
c: b86ce01
h: refs/heads/master
v: v3
  • Loading branch information
Jean-Christophe DUBOIS authored and Arnd Bergmann committed Jul 20, 2007
1 parent 159b2a8 commit 494817d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 827e3648dc2c31e01db7cd2e4498061cf78a97a9
refs/heads/master: b86ce01c7700cfc74665799355a46dcadf920ebd
7 changes: 7 additions & 0 deletions trunk/arch/powerpc/platforms/cell/cbe_regs.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ static struct device_node *cbe_get_be_node(int cpu_id)

cpu_handle = of_get_property(np, "cpus", &len);

/*
* the CAB SLOF tree is non compliant, so we just assume
* there is only one node
*/
if (WARN_ON_ONCE(!cpu_handle))
return np;

for (i=0; i<len; i++)
if (of_find_node_by_phandle(cpu_handle[i]) == of_get_cpu_node(cpu_id, NULL))
return np;
Expand Down

0 comments on commit 494817d

Please sign in to comment.