x86, cacheinfo: Calculate L3 indices
commit7f5c41a5ff551f3732af815f3c1819df3b48f409
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 22 Jan 2010 15:01:07 +0000 (22 16:01 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:27 +0000 (26 07:41 -0700)
tree8514aef18c3c156824b679aea4a4daf328e34af2
parent203dfecb24437869490f160f679cdb5e2140fb4e
x86, cacheinfo: Calculate L3 indices

commit 048a8774ca43488d78605031f11cc206d7a2682a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/cpu/intel_cacheinfo.c