x86, cpu: Preset default tlb_flushall_shift on AMD
authorBorislav Petkov <borislav.petkov@amd.com>
Mon, 6 Aug 2012 17:00:39 +0000 (19:00 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 7 Aug 2012 02:18:39 +0000 (19:18 -0700)
commit057237bb35a605d795fd787868a1088705f26ee5
tree952a863f6c8ced5ad8e4b28b6c195c4b324e5bad
parentb46882e4c4de4813947fce940fe74af794a1eb72
x86, cpu: Preset default tlb_flushall_shift on AMD

Run the mprotect.c microbenchmark on all our families >= K8 and preset
the flushall shift variable accordingly.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Link: http://lkml.kernel.org/r/1344272439-29080-5-git-send-email-bp@amd64.org
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/amd.c