x86/irq: Hide 'HYP:' line in /proc/interrupts when not on Xen/Hyper-V
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 7 Jul 2015 16:26:13 +0000 (18:26 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 8 Jul 2015 09:18:34 +0000 (11:18 +0200)
commit9d87cd61a6b71ee00b7576a3ebc10208becdbea1
tree04314fbe62c128bb6837088fe888b12517a80a43
parentd6ac4ffc61ace6ed6f183e9fd7f207c0ddafb897
x86/irq: Hide 'HYP:' line in /proc/interrupts when not on Xen/Hyper-V

Hypervisor callback interrupts are only accounted on
Xen/Hyper-V. There is no point in having always-zero HYP: line
on other hypervisors or bare metal. Print the line only if
HYPERVISOR_CALLBACK_VECTOR was allocated.

Reported-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1436286373-11908-1-git-send-email-vkuznets@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/irq.c