Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367254
b: refs/heads/master
c: 72aea39
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Catalin Marinas committed Apr 25, 2013
1 parent 2fbbf68 commit 31179f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: a84b086b874e0c03ca456c1748df7031a8cdf957
refs/heads/master: 72aea393a2e7c53a951bc581f18a79315f47036b
5 changes: 4 additions & 1 deletion trunk/arch/arm64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,17 +270,20 @@ void __init smp_init_cpus(void)
bool bootcpu_valid = false;

while ((dn = of_find_node_by_type(dn, "cpu"))) {
const u32 *cell;
u64 hwid;

/*
* A cpu node with missing "reg" property is
* considered invalid to build a cpu_logical_map
* entry.
*/
if (of_property_read_u64(dn, "reg", &hwid)) {
cell = of_get_property(dn, "reg", NULL);
if (!cell) {
pr_err("%s: missing reg property\n", dn->full_name);
goto next;
}
hwid = of_read_number(cell, of_n_addr_cells(dn));

/*
* Non affinity bits must be set to 0 in the DT
Expand Down

0 comments on commit 31179f5

Please sign in to comment.