Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136369
b: refs/heads/master
c: 2f8975f
h: refs/heads/master
i:
  136367: 7073e39
v: v3
  • Loading branch information
Rusty Russell authored and Ingo Molnar committed Jan 11, 2009
1 parent 8cc6f5a commit 4b19317
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: f7df8ed164996cd2c6aca9674388be6ef78d8b37
refs/heads/master: 2f8975fbcf07103afab0bbaea5f5b1a9967ffb86
15 changes: 11 additions & 4 deletions trunk/drivers/net/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,20 +854,27 @@ static void efx_fini_io(struct efx_nic *efx)
* interrupts across them. */
static int efx_wanted_rx_queues(void)
{
cpumask_t core_mask;
cpumask_var_t core_mask;
int count;
int cpu;

cpus_clear(core_mask);
if (!alloc_cpumask_var(&core_mask, GFP_KERNEL)) {
printk(KERN_WARNING
"efx.c: allocation failure, irq balancing hobbled\n");
return 1;
}

cpumask_clear(core_mask);
count = 0;
for_each_online_cpu(cpu) {
if (!cpu_isset(cpu, core_mask)) {
if (!cpumask_test_cpu(cpu, core_mask)) {
++count;
cpumask_or(&core_mask, &core_mask,
cpumask_or(core_mask, core_mask,
topology_core_cpumask(cpu));
}
}

free_cpumask_var(core_mask);
return count;
}

Expand Down

0 comments on commit 4b19317

Please sign in to comment.