]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, cacheinfo: Add cache index disable sysfs attrs only to L3 caches
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 22 Jan 2010 15:01:06 +0000 (16:01 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:27 +0000 (07:41 -0700)
commit203dfecb24437869490f160f679cdb5e2140fb4e
treee13af3f5311249d0d47947015c201e1659647837
parent69c30dfc8f13df43a436bbbc6f83dbb0415eca3a
x86, cacheinfo: Add cache index disable sysfs attrs only to L3 caches

commit 897de50e08937663912c86fb12ad7f708af2386c upstream.

The cache_disable_[01] attribute in

/sys/devices/system/cpu/cpu?/cache/index[0-3]/

is enabled on all cache levels although only L3 supports it. Add it only
to the cache level that actually supports it.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <1264172467-25155-5-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