diff options
author | Burt P <pburt0@gmail.com> | 2017-07-11 12:49:50 -0500 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2017-07-12 19:38:41 -0700 |
commit | b1872a13aa1f21fe35f97cf0dd41876363307177 (patch) | |
tree | 388418cf69327c1b5ab4c2fcdbba75a485e18507 /includes/cpu_util.h | |
parent | b4156152f08d9034722fb9122e20369602c284fc (diff) |
cpu topology: add book and drawer
Apparently used in s390.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/cpu_util.h')
-rw-r--r-- | includes/cpu_util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/cpu_util.h b/includes/cpu_util.h index 656a402c..db72873a 100644 --- a/includes/cpu_util.h +++ b/includes/cpu_util.h @@ -16,7 +16,7 @@ gchar *byte_order_str(void); /* from /sys/devices/system/cpu/cpu%d/%s */ gchar* get_cpu_str(const gchar* file, gint cpuid); -gint get_cpu_int(const char* item, int cpuid); +gint get_cpu_int(const char* item, int cpuid, int null_val); /* space delimted list of flags, finds flag */ int processor_has_flag(gchar * strflags, gchar * strflag); @@ -32,6 +32,8 @@ typedef struct { gint id; /* thread */ gint socket_id; gint core_id; + gint book_id; + gint drawer_id; } cpu_topology_data; cpufreq_data *cpufreq_new(gint id); |