aboutsummaryrefslogtreecommitdiff
path: root/includes/x86
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-12-02 00:18:42 -0600
committerLeandro Pereira <leandro@hardinfo.org>2017-12-09 12:10:54 -0800
commitf9a5bd3159c6facebcb16a1df48e6dc8c2258671 (patch)
treed22dbe5f5cb9128daaf44b6b0bde4fa9927d8eb5 /includes/x86
parent96980fbf494d9c453c6b558967c90c55e41abe2d (diff)
x86: add summary of caches to package information
Show actual physical caches by counting only unique references from each "cpu" (hardware thread). Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/x86')
-rw-r--r--includes/x86/processor-platform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/x86/processor-platform.h b/includes/x86/processor-platform.h
index 57a9830c..2c0a8ffd 100644
--- a/includes/x86/processor-platform.h
+++ b/includes/x86/processor-platform.h
@@ -30,6 +30,8 @@ struct _ProcessorCache {
gint size;
gchar *type;
gint ways_of_associativity;
+ gint uid; /* uid is unique among caches with the same (type, level) */
+ gint phy_sock;
};
struct _Processor {