Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81079
b: refs/heads/master
c: a0a7ae8
h: refs/heads/master
i:
  81077: 3c7c6db
  81075: d78f6ef
  81071: acd6dde
v: v3
  • Loading branch information
Andre Detsch authored and Arnd Bergmann committed Dec 19, 2007
1 parent e0864b3 commit 637b18e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 3ce2f62b05eca594356fc477229e233e2678b509
refs/heads/master: a0a7ae8939e3fdecf5478ddba54562e23de7ca1d
11 changes: 8 additions & 3 deletions trunk/arch/powerpc/platforms/cell/spu_manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,15 @@ static void init_affinity_qs20_harcoded(void)

static int of_has_vicinity(void)
{
struct spu* spu;
struct device_node *dn;

spu = list_first_entry(&cbe_spu_info[0].spus, struct spu, cbe_list);
return of_find_property(spu_devnode(spu), "vicinity", NULL) != NULL;
for_each_node_by_type(dn, "spe") {
if (of_find_property(dn, "vicinity", NULL)) {
of_node_put(dn);
return 1;
}
}
return 0;
}

static struct spu *devnode_spu(int cbe, struct device_node *dn)
Expand Down

0 comments on commit 637b18e

Please sign in to comment.