From: Hong H. Pham <hong.pham@xxxxxxxxxxxxx> Register the CPU used for interrupt handling with the network device layer so that other work can be distributed evenly and optimally across the remaining CPUs. Signed-off-by: Hong H. Pham <hong.pham@xxxxxxxxxxxxx> Signed-off-by: Chris Torek <chris.torek@xxxxxxxxxxxxx> --- drivers/net/niu.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/niu.c b/drivers/net/niu.c index cfb43a4..c82e970 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c @@ -6143,6 +6143,7 @@ static int niu_request_irq(struct niu *np) for (i = 0; i < np->num_ldg; i++) { struct niu_ldg *lp = &np->ldg[i]; + netdev_reserve_cpu(netdev_map_to_cpu(lp->irq)); err = request_irq(lp->irq, niu_interrupt, IRQF_SHARED | IRQF_SAMPLE_RANDOM, np->irq_name[i], lp); @@ -6158,6 +6159,7 @@ out_free_irqs: struct niu_ldg *lp = &np->ldg[j]; free_irq(lp->irq, lp); + netdev_release_cpu(netdev_map_to_cpu(lp->irq)); } return err; } @@ -6170,6 +6172,7 @@ static void niu_free_irq(struct niu *np) struct niu_ldg *lp = &np->ldg[i]; free_irq(lp->irq, lp); + netdev_release_cpu(netdev_map_to_cpu(lp->irq)); } } -- 1.6.0.4.766.g6fc4a -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html