x86, cacheinfo: Make L3 cache info per node
commitba06edb63f5ef2913aad37070eaec3c9d8ac73b8
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 22 Apr 2010 14:07:01 +0000 (22 16:07 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 23 Apr 2010 00:17:23 +0000 (22 17:17 -0700)
tree79605f9dfc645a6be5045e1fb18201befe27fef3
parent9350f982e4fe539e83a2d4a13e9b53ad8253c4a8
x86, cacheinfo: Make L3 cache info per node

Currently, we're allocating L3 cache info and calculating indices for
each online cpu which is clearly superfluous. Instead, we need to do
this per-node as is each L3 cache.

No functional change, only per-cpu memory savings.

-v2: Allocate L3 cache descriptors array dynamically.

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