diff options
Diffstat (limited to 'modules/devices/x86/processor.c')
-rw-r--r-- | modules/devices/x86/processor.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c index 4141f051..42f0661a 100644 --- a/modules/devices/x86/processor.c +++ b/modules/devices/x86/processor.c @@ -166,11 +166,11 @@ static gchar *__cache_get_info_as_string(Processor *processor) /* This is not used directly, but creates translatable strings for * the type string returned from /sys/.../cache */ -static const char* cache_types[] = { - NC_("cache-type", /*/cache type, as appears in: Level 1 (Data)*/ "Data"), - NC_("cache-type", /*/cache type, as appears in: Level 1 (Instruction)*/ "Instruction"), - NC_("cache-type", /*/cache type, as appears in: Level 2 (Unified)*/ "Unified") -}; +//static const char* cache_types[] = { +// NC_("cache-type", /*/cache type, as appears in: Level 1 (Data)*/ "Data"), +// NC_("cache-type", /*/cache type, as appears in: Level 1 (Instruction)*/ "Instruction"), +// NC_("cache-type", /*/cache type, as appears in: Level 2 (Unified)*/ "Unified") +//}; static void __cache_obtain_info(Processor *processor) { @@ -257,7 +257,6 @@ static gint cmp_cpufreq_data(cpufreq_data *a, cpufreq_data *b) { } static gint cmp_cpufreq_data_ignore_affected(cpufreq_data *a, cpufreq_data *b) { - gint i = 0; cmp_clocks_test(cpukhz_max); cmp_clocks_test(cpukhz_min); return 0; @@ -267,10 +266,10 @@ gchar *clocks_summary(GSList * processors) { gchar *ret = g_strdup_printf("[%s]\n", _("Clocks")); GSList *all_clocks = NULL, *uniq_clocks = NULL; - GSList *tmp, *l; + GSList *l; Processor *p; cpufreq_data *c, *cur = NULL; - gint cur_count = 0, i = 0; + gint cur_count = 0; /* create list of all clock references */ for (l = processors; l; l = l->next) { @@ -369,7 +368,7 @@ gchar *caches_summary(GSList * processors) GSList *tmp, *l; Processor *p; ProcessorCache *c, *cur = NULL; - gint cur_count = 0, i = 0; + gint cur_count = 0; /* create list of all cache references */ for (l = processors; l; l = l->next) { |