ntdll: GetLogicalProcessorInformationEx report LTP_PC_SMT for SMT cores.
Signed-off-by: Roderick Colenbrander <thunderbird2k@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1312c66428
commit
13bd1b9f75
|
@ -1388,7 +1388,10 @@ static inline BOOL logical_proc_info_add_by_id(SYSTEM_LOGICAL_PROCESSOR_INFORMAT
|
|||
|
||||
dataex->Relationship = rel;
|
||||
dataex->Size = log_proc_ex_size_plus(sizeof(PROCESSOR_RELATIONSHIP));
|
||||
dataex->u.Processor.Flags = 0; /* TODO */
|
||||
if (rel == RelationProcessorCore)
|
||||
dataex->u.Processor.Flags = count_bits(mask) > 1 ? LTP_PC_SMT : 0;
|
||||
else
|
||||
dataex->u.Processor.Flags = 0;
|
||||
dataex->u.Processor.EfficiencyClass = 0;
|
||||
dataex->u.Processor.GroupCount = 1;
|
||||
dataex->u.Processor.GroupMask[0].Mask = mask;
|
||||
|
|
|
@ -6050,6 +6050,8 @@ typedef enum _LOGICAL_PROCESSOR_RELATIONSHIP
|
|||
RelationAll = 0xffff
|
||||
} LOGICAL_PROCESSOR_RELATIONSHIP;
|
||||
|
||||
#define LTP_PC_SMT 0x1
|
||||
|
||||
typedef enum _PROCESSOR_CACHE_TYPE
|
||||
{
|
||||
CacheUnified,
|
||||
|
|
Loading…
Reference in New Issue