lkml.org 
[lkml]   [2009]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 9/9] irq: make ht irq_desc numa aware


    Impact: use create_irq_nr

    try to get irq_desc on the node with create_irq_nr

    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    ---
    drivers/pci/htirq.c | 4 +++-
    1 file changed, 3 insertions(+), 1 deletion(-)

    Index: linux-2.6/drivers/pci/htirq.c
    ===================================================================
    --- linux-2.6.orig/drivers/pci/htirq.c
    +++ linux-2.6/drivers/pci/htirq.c
    @@ -98,6 +98,7 @@ int __ht_create_irq(struct pci_dev *dev,
    int max_irq;
    int pos;
    int irq;
    + int node;

    pos = pci_find_ht_capability(dev, HT_CAPTYPE_IRQ);
    if (!pos)
    @@ -125,7 +126,8 @@ int __ht_create_irq(struct pci_dev *dev,
    cfg->msg.address_lo = 0xffffffff;
    cfg->msg.address_hi = 0xffffffff;

    - irq = create_irq();
    + node = dev_to_node(&dev->dev);
    + irq = create_irq_nr(0, node);

    if (irq <= 0) {
    kfree(cfg);

    \
     
     \ /
      Last update: 2009-04-28 03:07    [W:0.026 / U:0.528 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site