x86, cacheinfo: Calculate L3 indices
commit048a8774ca43488d78605031f11cc206d7a2682a
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 22 Jan 2010 15:01:07 +0000 (22 16:01 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 23 Jan 2010 00:06:31 +0000 (22 16:06 -0800)
tree7dd99f8a2ba8b37638e71f4fca50cf616841219f
parent897de50e08937663912c86fb12ad7f708af2386c
x86, cacheinfo: Calculate L3 indices

We need to know the valid L3 indices interval when disabling them over
/sysfs. Do that when the core is brought online and add boundary checks
to the sysfs .store attribute.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <1264172467-25155-6-git-send-email-bp@amd64.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/intel_cacheinfo.c