Rescan before warning about no msi in sysfs

Don't log a warning about absence of MSI data in sysfs before real rescan.
It important for hotplug.

Signed-off-by: Serj Kalichev <serj.kalichev@gmail.com>
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
Serj Kalichev 2013-10-03 17:47:06 +04:00 committed by Neil Horman
parent c48b2b45a0
commit b43c5f6a95

View file

@ -187,7 +187,7 @@ void parse_proc_interrupts(void)
if ((info->type == IRQ_TYPE_MSI) || (info->type == IRQ_TYPE_MSIX))
msi_found_in_sysfs = 1;
}
if ((proc_int_has_msi) && (!msi_found_in_sysfs)) {
if ((proc_int_has_msi) && (!msi_found_in_sysfs) && (!need_rescan)) {
log(TO_ALL, LOG_WARNING, "WARNING: MSI interrupts found in /proc/interrupts\n");
log(TO_ALL, LOG_WARNING, "But none found in sysfs, you need to update your kernel\n");
log(TO_ALL, LOG_WARNING, "Until then, IRQs will be improperly classified\n");