Commit 4385cecf authored by Jiri Slaby's avatar Jiri Slaby Committed by Ingo Molnar

x86: intel_cacheinfo, minor show_type cleanup

Impact: cleanup
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent cbe9ee00
...@@ -644,20 +644,17 @@ static inline ssize_t show_shared_cpu_list(struct _cpuid4_info *leaf, char *buf) ...@@ -644,20 +644,17 @@ static inline ssize_t show_shared_cpu_list(struct _cpuid4_info *leaf, char *buf)
return show_shared_cpu_map_func(leaf, 1, buf); return show_shared_cpu_map_func(leaf, 1, buf);
} }
static ssize_t show_type(struct _cpuid4_info *this_leaf, char *buf) { static ssize_t show_type(struct _cpuid4_info *this_leaf, char *buf)
switch(this_leaf->eax.split.type) { {
case CACHE_TYPE_DATA: switch (this_leaf->eax.split.type) {
case CACHE_TYPE_DATA:
return sprintf(buf, "Data\n"); return sprintf(buf, "Data\n");
break; case CACHE_TYPE_INST:
case CACHE_TYPE_INST:
return sprintf(buf, "Instruction\n"); return sprintf(buf, "Instruction\n");
break; case CACHE_TYPE_UNIFIED:
case CACHE_TYPE_UNIFIED:
return sprintf(buf, "Unified\n"); return sprintf(buf, "Unified\n");
break; default:
default:
return sprintf(buf, "Unknown\n"); return sprintf(buf, "Unknown\n");
break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment