aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/smpboot.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@nuerscht.ch>2005-11-07 03:58:31 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-07 10:53:28 -0500
commit38e548ee1a79c8da7b3d9e26f2adce9b61413f84 (patch)
tree1811dc06acbba9d9bccebe6ad3fc495e96862e60 /arch/i386/kernel/smpboot.c
parent0d6d82b6712c808e461090dd483f111f72b3b38b (diff)
[PATCH] arch/i386: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/smpboot.c')
-rw-r--r--arch/i386/kernel/smpboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/smpboot.c b/arch/i386/kernel/smpboot.c
index 01b618e73ecd..e6488ffc1f79 100644
--- a/arch/i386/kernel/smpboot.c
+++ b/arch/i386/kernel/smpboot.c
@@ -612,7 +612,7 @@ static inline void __inquire_remote_apic(int apicid)
612 612
613 printk("Inquiring remote APIC #%d...\n", apicid); 613 printk("Inquiring remote APIC #%d...\n", apicid);
614 614
615 for (i = 0; i < sizeof(regs) / sizeof(*regs); i++) { 615 for (i = 0; i < ARRAY_SIZE(regs); i++) {
616 printk("... APIC #%d %s: ", apicid, names[i]); 616 printk("... APIC #%d %s: ", apicid, names[i]);
617 617
618 /* 618 /*