summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/io_apic.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2010-03-30 08:07:08 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2010-05-04 20:34:48 (GMT)
commit4b6b19a1c7302477653d799a53d48063dd53d555 (patch)
tree1bce228481fc2ad7d81e8cb636bcc045c53d88ff /arch/x86/include/asm/io_apic.h
parent9638fa521e42c9281c874c6b5a382b1ced4ee496 (diff)
downloadlinux-fsl-qoriq-4b6b19a1c7302477653d799a53d48063dd53d555.tar.xz
x86, ioapic: Fix io_apic_redir_entries to return the number of entries.
io_apic_redir_entries has a huge conceptual bug. It returns the maximum redirection entry not the number of redirection entries. Which simply does not match what the name of the function. This just caught me and it caught Feng Tang, and Len Brown when they wrote sfi_parse_ioapic. Modify io_apic_redir_entries to actually return the number of redirection entries, and fix the callers so that they properly handle receiving the number of the number of redirection table entries, instead of the number of redirection table entries less one. While the usage in sfi.c does not show up in this patch it is fixed by virtue of the fact that io_apic_redir_entries now has the semantics sfi_parse_ioapic most reasonably expects. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> LKML-Reference: <1269936436-7039-7-git-send-email-ebiederm@xmission.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/io_apic.h')
0 files changed, 0 insertions, 0 deletions