Commit 9ff9f51
committed
Don't try to count number of logical CPUs from CPUID itself
This topology enumeration process is very complex
(https://web.archive.org/web/20160306203252/https://software.intel.com/en-us/articles/intel-64-architecture-processor-topology-enumeration)
and easy to get wrong.
We have to rely on the operating system to allow us to switch CPUs, so we
may as well rely on it to *count* CPUs as well.1 parent 7a23453 commit 9ff9f51
1 file changed
+2
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 108 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 109 | + | |
| 110 | + | |
127 | 111 | | |
128 | | - | |
129 | | - | |
130 | 112 | | |
131 | 113 | | |
132 | 114 | | |
| |||
0 commit comments