Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119401
b: refs/heads/master
c: a1967d6
h: refs/heads/master
i:
  119399: 0457631
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Nov 23, 2008
1 parent a5621c2 commit 0398195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 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: 57550b27ff5a13b00370fbfa34f2471c3456a41d
refs/heads/master: a1967d64414dab500e86cbbddf8eae6ad2047903
22 changes: 1 addition & 21 deletions trunk/arch/x86/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -3608,27 +3608,7 @@ int __init io_apic_get_redir_entries (int ioapic)

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) + 1;

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

/* something wrong ? */
if (nr < nr_min)
nr = nr_min;
if (WARN_ON(nr > NR_IRQS))
nr = NR_IRQS;

return nr;
return NR_IRQS;
}

/* --------------------------------------------------------------------------
Expand Down

0 comments on commit 0398195

Please sign in to comment.