diff options
author | Burt P <pburt0@gmail.com> | 2017-12-12 18:52:07 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-02-27 07:43:20 -0800 |
commit | 9d126592569f7aabbf4d5125930a461f8aa64a7f (patch) | |
tree | 5a164ab4e62627d6fa86b5130c77d63db6aa6fd6 /includes/x86 | |
parent | 2f9dad39b0847991dd2b19dc3e999f89397f47f9 (diff) |
x86: fix for kernels that don't provide cache id
Use shared_cpu_list as a unique cache id, but only in the
case that kernel-supplied cache id is not available.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/x86')
-rw-r--r-- | includes/x86/processor-platform.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/x86/processor-platform.h b/includes/x86/processor-platform.h index 2c0a8ffd..a89a831f 100644 --- a/includes/x86/processor-platform.h +++ b/includes/x86/processor-platform.h @@ -31,6 +31,7 @@ struct _ProcessorCache { gchar *type; gint ways_of_associativity; gint uid; /* uid is unique among caches with the same (type, level) */ + gchar *shared_cpu_list; /* some kernel's don't give a uid, so try shared_cpu_list */ gint phy_sock; }; |