projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1535bd8
)
sparc64:tsb.c:use array size macro rather than number
author
Doug Wilson
<doug.lkml@gmail.com>
Fri, 7 Mar 2014 10:59:03 +0000
(16:29 +0530)
committer
David S. Miller
<davem@davemloft.net>
Mon, 17 Mar 2014 19:55:49 +0000
(15:55 -0400)
This is a small patch which uses ARRAY_SIZE macro
rather than a number to make code readability better.
Signed-off-by: Doug Wilson <doug.lkml@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/tsb.c
patch
|
blob
|
history
diff --git
a/arch/sparc/mm/tsb.c
b/arch/sparc/mm/tsb.c
index 3b3a360b429a8ac78b5089a98c09027aa40634a3..f5d506fdddad3dea459aa97308e9a8872f34ffe8 100644
(file)
--- a/
arch/sparc/mm/tsb.c
+++ b/
arch/sparc/mm/tsb.c
@@
-273,7
+273,7
@@
void __init pgtable_cache_init(void)
prom_halt();
}
- for (i = 0; i <
8
; i++) {
+ for (i = 0; i <
ARRAY_SIZE(tsb_cache_names)
; i++) {
unsigned long size = 8192 << i;
const char *name = tsb_cache_names[i];