Rev 3582 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3582 | Rev 3618 | ||
---|---|---|---|
Line 97... | Line 97... | ||
97 | } |
97 | } |
98 | } else if (is_us_iv()) { |
98 | } else if (is_us_iv()) { |
99 | node = ofw_tree_find_child(cpus_parent(), "cmp"); |
99 | node = ofw_tree_find_child(cpus_parent(), "cmp"); |
100 | while (node) { |
100 | while (node) { |
101 | int f; |
101 | int f; |
- | 102 | f = find_cpu_frequency( |
|
102 | f = find_cpu_frequency(ofw_tree_find_child(node, "cpu@0")); |
103 | ofw_tree_find_child(node, "cpu@0")); |
103 | if (f != -1) |
104 | if (f != -1) |
104 | clock_frequency = (uint32_t) f; |
105 | clock_frequency = (uint32_t) f; |
- | 106 | f = find_cpu_frequency( |
|
105 | f = find_cpu_frequency(ofw_tree_find_child(node, "cpu@1")); |
107 | ofw_tree_find_child(node, "cpu@1")); |
106 | if (f != -1) |
108 | if (f != -1) |
107 | clock_frequency = (uint32_t) f; |
109 | clock_frequency = (uint32_t) f; |
108 | node = ofw_tree_find_peer_by_name(node, "cmp"); |
110 | node = ofw_tree_find_peer_by_name(node, "cmp"); |
109 | } |
111 | } |
110 | } |
112 | } |