]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, cacheinfo: Calculate L3 indices
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 22 Jan 2010 15:01:07 +0000 (16:01 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:47:57 +0000 (07:47 -0700)
commitad98454d28b70fafe526fbab77e67560bacde482
treec47cf8454d221c3234c64a7bc4935e390db5e272
parent233c0fce667f9277557638617bcd1d914c555c83
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