Skip to content

Commit 851026a

Browse files
committed
x86/cacheinfo: Remove unused trace variable
15cd881 ("x86: Remove the CPU cache size printk's") removed the last use of the trace local var. Remove it too and the useless trace cache case. No functional changes. Reported-by: Jiapeng Chong <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: http://lore.kernel.org/r/[email protected]
1 parent 54628de commit 851026a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/x86/kernel/cpu/cacheinfo.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ void init_hygon_cacheinfo(struct cpuinfo_x86 *c)
734734
void init_intel_cacheinfo(struct cpuinfo_x86 *c)
735735
{
736736
/* Cache sizes */
737-
unsigned int trace = 0, l1i = 0, l1d = 0, l2 = 0, l3 = 0;
737+
unsigned int l1i = 0, l1d = 0, l2 = 0, l3 = 0;
738738
unsigned int new_l1d = 0, new_l1i = 0; /* Cache sizes from cpuid(4) */
739739
unsigned int new_l2 = 0, new_l3 = 0, i; /* Cache sizes from cpuid(4) */
740740
unsigned int l2_id = 0, l3_id = 0, num_threads_sharing, index_msb;
@@ -835,9 +835,6 @@ void init_intel_cacheinfo(struct cpuinfo_x86 *c)
835835
case LVL_3:
836836
l3 += cache_table[k].size;
837837
break;
838-
case LVL_TRACE:
839-
trace += cache_table[k].size;
840-
break;
841838
}
842839

843840
break;

0 commit comments

Comments
 (0)