Changeset a35b458 in mainline for kernel/arch/sparc64/src/smp/sun4u/smp.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/smp/sun4u/smp.c
r3061bc1 ra35b458 62 62 ofw_tree_node_t *node; 63 63 unsigned int cnt = 0; 64 64 65 65 if (is_us() || is_us_iii()) { 66 66 node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu"); … … 76 76 } 77 77 } 78 78 79 79 config.cpu_count = max(1, cnt); 80 80 } … … 89 89 uint32_t mid; 90 90 ofw_tree_property_t *prop; 91 91 92 92 /* 'upa-portid' for US, 'portid' for US-III, 'cpuid' for US-IV */ 93 93 prop = ofw_tree_getprop(node, "upa-portid"); … … 96 96 if ((!prop) || (!prop->value)) 97 97 prop = ofw_tree_getprop(node, "cpuid"); 98 98 99 99 if (!prop || prop->value == NULL) 100 100 return; 101 101 102 102 mid = *((uint32_t *) prop->value); 103 103 if (CPU->arch.mid == mid) … … 105 105 106 106 waking_up_mid = mid; 107 107 108 108 if (waitq_sleep_timeout(&ap_completion_wq, 1000000, 109 109 SYNCH_FLAGS_NONE, NULL) == ETIMEOUT) … … 117 117 ofw_tree_node_t *node; 118 118 int i; 119 119 120 120 if (is_us() || is_us_iii()) { 121 121 node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu");
Note:
See TracChangeset
for help on using the changeset viewer.