Rev 2131 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2131 | Rev 2307 | ||
|---|---|---|---|
| Line 61... | Line 61... | ||
| 61 | prop = ofw_tree_getprop(node, "upa-portid"); |
61 | prop = ofw_tree_getprop(node, "upa-portid"); |
| 62 | if (prop && prop->value) { |
62 | if (prop && prop->value) { |
| 63 | mid = *((uint32_t *) prop->value); |
63 | mid = *((uint32_t *) prop->value); |
| 64 | if (mid == CPU->arch.mid) { |
64 | if (mid == CPU->arch.mid) { |
| 65 | prop = ofw_tree_getprop(node, |
65 | prop = ofw_tree_getprop(node, |
| 66 | "clock-frequency"); |
66 | "clock-frequency"); |
| 67 | if (prop && prop->value) |
67 | if (prop && prop->value) |
| 68 | clock_frequency = *((uint32_t *) |
68 | clock_frequency = *((uint32_t *) |
| 69 | prop->value); |
69 | prop->value); |
| 70 | } |
70 | } |
| 71 | } |
71 | } |
| 72 | node = ofw_tree_find_peer_by_device_type(node, "cpu"); |
72 | node = ofw_tree_find_peer_by_device_type(node, "cpu"); |
| 73 | } |
73 | } |
| 74 | 74 | ||