From 9d126592569f7aabbf4d5125930a461f8aa64a7f Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 12 Dec 2017 18:52:07 -0600 Subject: 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 --- includes/x86/processor-platform.h | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/x86') 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; }; -- cgit v1.2.3