x86, ioapic: Clean up ioapic/apic_id usage
authorYinghai Lu <yinghai.lu@oracle.com>
Wed, 12 Oct 2011 07:33:48 +0000 (00:33 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 12 Oct 2011 07:55:28 +0000 (09:55 +0200)
commit6f50d45fae8189365805d26e1fdf26a75301bcae
tree3f11ba9089828fbb1b3157ad78e48c6a0a967f98
parentcda417dd87ed46f58cbc7d3f075ebe42b4462140
x86, ioapic: Clean up ioapic/apic_id usage

While looking at the code, apic_id sometime is referred to index
of ioapic, but sometime is used for phys apic id. and some even
use apic for real apic id. It is very confusing.

So try to limit apic_id or ioapic_id to be real apic id for
ioapic, and use ioapic_idx for ioapic index in the array.

-v2: Suggested by Ingo, use ioapic_idx consistently, instead of ioapic

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/4E9542DC.3090509@oracle.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/io_apic.c