diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-10 10:43:51 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 19:51:20 +0100 |
commit | 8447157a1ac467fae2125074f3693f557c8e05d3 (patch) | |
tree | 12a2fb9b351727bc28c7f2e29adcc97a849a5178 /arch/cris/mm | |
parent | [PATCH] CRIS: turn local_save_flags() + local_irq_disable() into local_irq_sa... (diff) | |
download | linux-8447157a1ac467fae2125074f3693f557c8e05d3.tar.xz linux-8447157a1ac467fae2125074f3693f557c8e05d3.zip |
[PATCH] CRIS: user ARRAY_SIZE macro when appropriate
Use ARRAY_SIZE macro already defined in linux/kernel.h
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Cc: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/cris/mm')
-rw-r--r-- | arch/cris/mm/tlb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/cris/mm/tlb.c b/arch/cris/mm/tlb.c index 0df390a656cd..c4a98e2e529e 100644 --- a/arch/cris/mm/tlb.c +++ b/arch/cris/mm/tlb.c @@ -8,6 +8,7 @@ */ #include <linux/init.h> +#include <linux/kernel.h> #include <asm/tlb.h> #define D(x) @@ -100,7 +101,7 @@ tlb_init(void) /* clear the page_id map */ - for (i = 1; i < sizeof (page_id_map) / sizeof (page_id_map[0]); i++) + for (i = 1; i < ARRAY_SIZE(page_id_map); i++) page_id_map[i] = NULL; /* invalidate the entire TLB */ |