diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2012-08-06 13:00:36 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-08-06 22:18:09 -0400 |
commit | a9ad773e0dd833651f0831020a0ea0265c29f2ea (patch) | |
tree | e3e820c48d3f17d736f4eeeeac13b97d1a1b2a98 | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff) |
x86, cpu: Fixup tlb_flushall_shift formatting
The TLB characteristics appeared like this in dmesg:
[ 0.065817] Last level iTLB entries: 4KB 512, 2MB 1024, 4MB 512
[ 0.065817] Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 512
[ 0.065817] tlb_flushall_shift is 0xffffffff
where tlb_flushall_shift is actually -1 but dumped as a hex number.
However, the Kconfig option CONFIG_DEBUG_TLBFLUSH and the rest of the
code treats this as a signed decimal and states "If you set it to -1,
the code flushes the whole TLB unconditionally."
So, fix its formatting in accordance with the other references to it.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Link: http://lkml.kernel.org/r/1344272439-29080-2-git-send-email-bp@amd64.org
Acked-by: Alex Shi <alex.shi@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 46d8786d655e..d239977f361f 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -474,7 +474,7 @@ void __cpuinit cpu_detect_tlb(struct cpuinfo_x86 *c) | |||
474 | 474 | ||
475 | printk(KERN_INFO "Last level iTLB entries: 4KB %d, 2MB %d, 4MB %d\n" \ | 475 | printk(KERN_INFO "Last level iTLB entries: 4KB %d, 2MB %d, 4MB %d\n" \ |
476 | "Last level dTLB entries: 4KB %d, 2MB %d, 4MB %d\n" \ | 476 | "Last level dTLB entries: 4KB %d, 2MB %d, 4MB %d\n" \ |
477 | "tlb_flushall_shift is 0x%x\n", | 477 | "tlb_flushall_shift: %d\n", |
478 | tlb_lli_4k[ENTRIES], tlb_lli_2m[ENTRIES], | 478 | tlb_lli_4k[ENTRIES], tlb_lli_2m[ENTRIES], |
479 | tlb_lli_4m[ENTRIES], tlb_lld_4k[ENTRIES], | 479 | tlb_lli_4m[ENTRIES], tlb_lld_4k[ENTRIES], |
480 | tlb_lld_2m[ENTRIES], tlb_lld_4m[ENTRIES], | 480 | tlb_lld_2m[ENTRIES], tlb_lld_4m[ENTRIES], |