diff options
author | Marat Dukhan <marat@fb.com> | 2017-09-13 11:10:10 -0700 |
---|---|---|
committer | Marat Dukhan <marat@fb.com> | 2017-09-13 11:10:10 -0700 |
commit | 15e1df98870b9db2d93ecf0bcdee12e3147c5860 (patch) | |
tree | aa50588b3564f35863ee3e6444e5d3682535939d /include | |
parent | 846c1784b79f253bb9243c42ea96b8c2125f7269 (diff) | |
download | cpuinfo-15e1df98870b9db2d93ecf0bcdee12e3147c5860.tar.gz |
Move linux_id into top-level processor structure
Diffstat (limited to 'include')
-rw-r--r-- | include/cpuinfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cpuinfo.h b/include/cpuinfo.h index 3bb27e9..ae18508 100644 --- a/include/cpuinfo.h +++ b/include/cpuinfo.h @@ -580,9 +580,6 @@ struct cpuinfo_topology { uint32_t core_id; /* Package (socket) ID */ uint32_t package_id; - #if defined(__linux__) - int linux_id; - #endif #if CPUINFO_ARCH_X86 || CPUINFO_ARCH_X86_64 uint32_t apic_id; #endif @@ -591,6 +588,9 @@ struct cpuinfo_topology { struct cpuinfo_processor { enum cpuinfo_vendor vendor; enum cpuinfo_uarch uarch; +#if defined(__linux__) + int linux_id; +#endif struct cpuinfo_topology topology; struct { const struct cpuinfo_trace_cache* trace; |