ntdll: Added numa node information to SystemLogicalProcessorInformation (Mac).

This commit is contained in:
Piotr Caban 2012-09-05 12:01:15 +02:00 committed by Alexandre Julliard
parent 6c2b7332d3
commit 785fde5920
1 changed files with 8 additions and 0 deletions

View File

@ -1648,6 +1648,14 @@ static NTSTATUS create_logical_proc_info(SYSTEM_LOGICAL_PROCESSOR_INFORMATION **
len++;
}
mask = 0;
for(i=0; i<lcpu_no; i++)
mask |= (ULONG_PTR)1<<i;
(*data)[len].Relationship = RelationNumaNode;
(*data)[len].ProcessorMask = mask;
(*data)[len].u.NumaNode.NodeNumber = 0;
len++;
*max_len = len * sizeof(**data);
return STATUS_SUCCESS;
}