Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123102
b: refs/heads/master
c: b2ea25b
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Lynch authored and Paul Mackerras committed Dec 21, 2008
1 parent afd3778 commit 66b181d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: e523f723d69cde44e10116d7f49b277da0c6702c
refs/heads/master: b2ea25b958968c152c6fac0594f2c9aa8b59eb8d
11 changes: 4 additions & 7 deletions trunk/arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ int cpu_to_core_id(int cpu)
static struct device_node *cpu_to_l2cache(int cpu)
{
struct device_node *np;
const phandle *php;
phandle ph;
struct device_node *cache;

if (!cpu_present(cpu))
return NULL;
Expand All @@ -476,13 +475,11 @@ static struct device_node *cpu_to_l2cache(int cpu)
if (np == NULL)
return NULL;

php = of_get_property(np, "l2-cache", NULL);
if (php == NULL)
return NULL;
ph = *php;
cache = of_find_next_cache_node(np);

of_node_put(np);

return of_find_node_by_phandle(ph);
return cache;
}

/* Activate a secondary processor. */
Expand Down

0 comments on commit 66b181d

Please sign in to comment.