diff options
author | Kevin Tian <kevin.tian@intel.com> | 2011-08-31 15:18:23 +0100 |
---|---|---|
committer | Kevin Tian <kevin.tian@intel.com> | 2011-08-31 15:18:23 +0100 |
commit | a81d0ee933c35323f32269dad37977934b6cbb28 (patch) | |
tree | 1202c69e945e73341870451b43622fa35408763a /xen/arch/x86/io_apic.c | |
parent | 2f4c78e40fd1a9a6d4039dff42ecb37ba8087f99 (diff) | |
download | xen-a81d0ee933c35323f32269dad37977934b6cbb28.tar.gz xen-a81d0ee933c35323f32269dad37977934b6cbb28.tar.bz2 xen-a81d0ee933c35323f32269dad37977934b6cbb28.zip |
x86: add irq count for IPIs
such count is useful to assist decision make in cpuidle governor,
while w/o this patch only device interrupts through do_IRQ is
currently counted.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'xen/arch/x86/io_apic.c')
-rw-r--r-- | xen/arch/x86/io_apic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/arch/x86/io_apic.c b/xen/arch/x86/io_apic.c index dd45ff414e..471f7530e4 100644 --- a/xen/arch/x86/io_apic.c +++ b/xen/arch/x86/io_apic.c @@ -441,6 +441,7 @@ fastcall void smp_irq_move_cleanup_interrupt(struct cpu_user_regs *regs) struct cpu_user_regs *old_regs = set_irq_regs(regs); ack_APIC_irq(); + this_cpu(irq_count)++; irq_enter(); me = smp_processor_id(); |