aboutsummaryrefslogtreecommitdiff
path: root/include/cpuinfo.h
diff options
context:
space:
mode:
authorMarat Dukhan <maratek@gmail.com>2018-02-19 22:43:26 -0800
committerMarat Dukhan <maratek@gmail.com>2018-02-19 22:48:12 -0800
commitb2fc4ab8099b802de934f24adf2da6e4c863bd3c (patch)
treee2e22022cc4d4d1de9eba0e6628f127e7e8806ee /include/cpuinfo.h
parenta9e55a6afde89722af7ee30dc7bd27435e96226b (diff)
downloadcpuinfo-b2fc4ab8099b802de934f24adf2da6e4c863bd3c.tar.gz
Windows support
Diffstat (limited to 'include/cpuinfo.h')
-rw-r--r--include/cpuinfo.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/cpuinfo.h b/include/cpuinfo.h
index cae8af9..a9a49e4 100644
--- a/include/cpuinfo.h
+++ b/include/cpuinfo.h
@@ -424,6 +424,15 @@ struct cpuinfo_processor {
*/
int linux_id;
#endif
+#if defined(_WIN32)
+ /** Windows-specific ID for the group containing the logical processor. */
+ uint16_t windows_group_id;
+ /**
+ * Windows-specific ID of the logical processor within its group:
+ * - Bit <windows_processor_id> in the KAFFINITY mask identifies this logical processor within its group.
+ */
+ uint16_t windows_processor_id;
+#endif
#if CPUINFO_ARCH_X86 || CPUINFO_ARCH_X86_64
/** APIC ID (unique x86-specific ID of the logical processor) */
uint32_t apic_id;