Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116465
b: refs/heads/master
c: 052c0bf
h: refs/heads/master
i:
  116463: b05d846
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 16, 2008
1 parent ee4c064 commit 9f7714b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2d332fa3445160519de03c350a59602ac1c3df9
refs/heads/master: 052c0bff9b83a578654dfa513d6e3d0b3795f1e8
11 changes: 8 additions & 3 deletions trunk/arch/x86/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -3625,16 +3625,21 @@ int __init probe_nr_irqs(void)
{
int idx;
int nr = 0;
#ifndef CONFIG_XEN
int nr_min = 32;
#else
int nr_min = NR_IRQS;
#endif

for (idx = 0; idx < nr_ioapics; idx++)
nr += io_apic_get_redir_entries(idx);
nr += io_apic_get_redir_entries(idx) + 1;

/* double it for hotplug and msi and nmi */
nr <<= 1;

/* something wrong ? */
if (nr < 32)
nr = 32;
if (nr < nr_min)
nr = nr_min;

return nr;
}
Expand Down

0 comments on commit 9f7714b

Please sign in to comment.