aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2012-10-02 11:34:09 +0300
committerIngo Molnar <[email protected]>2012-10-04 13:28:08 +0200
commit961c79761dda351b5fb263a0654b98daac130b7a (patch)
tree4770ed24548881f40c6747a12c472a95710de6f8
parentfcd8af585f587741c051f7124b8dee6c73c8629b (diff)
x86/cache_info: Use ARRAY_SIZE() in amd_l3_attrs()
Using ARRAY_SIZE() is more readable. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Srivatsa S. Bhat <[email protected]> Cc: Shai Fultheim <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Andreas Herrmann <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--arch/x86/kernel/cpu/intel_cacheinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/intel_cacheinfo.c b/arch/x86/kernel/cpu/intel_cacheinfo.c
index 9a7c90d80bc4..93c5451bdd52 100644
--- a/arch/x86/kernel/cpu/intel_cacheinfo.c
+++ b/arch/x86/kernel/cpu/intel_cacheinfo.c
@@ -991,7 +991,7 @@ static struct attribute ** __cpuinit amd_l3_attrs(void)
if (attrs)
return attrs;
- n = sizeof (default_attrs) / sizeof (struct attribute *);
+ n = ARRAY_SIZE(default_attrs);
if (amd_nb_has_feature(AMD_NB_L3_INDEX_DISABLE))
n += 2;