Skip to content

Commit 184d638

Browse files
committed
shims: adjust the Windows path for Windows 11
The Windows 10 SDK Version 2104 (10.0.20348.0) which adds support for Windows 11 introduces new enumerated values for the logical processor configuration. Only one of the two is documented at MSDN. https://docs.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-logical_processor_relationship: ~~~ `RelationNumaNodeEx` Introduced in TBD - Release Iron. Requests that the full affinity be returned. Unlike the other relation types, `RelationNumaNodeEx` is not used oninput. It is simply a request for `RelationNumaNode` with full group information. ~~~ Treat this enumerated value as `RelationNodeNode`. It is unclear what the details of `RelationProcessorDie` is currently. For now, we leave that value ignored, though it is likely that we may have to address it in the future once the value is explained.
1 parent 34f383d commit 184d638

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/shims/hw_config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,14 @@ _dispatch_hw_get_config(_dispatch_hw_config_t c)
156156
++dwProcessorPhysicalCount;
157157
dwProcessorLogicalCount += __popcnt64(slpiCurrent->ProcessorMask);
158158
break;
159+
#if defined(RelationProcessorDie)
160+
case RelationProcessorDie:
161+
#endif
159162
case RelationProcessorPackage:
160163
case RelationNumaNode:
164+
#if defined(RelationNumaNodeEx)
165+
case RelationNumaNodeEx:
166+
#endif
161167
case RelationCache:
162168
case RelationGroup:
163169
case RelationAll:

0 commit comments

Comments
 (0)