lkml.org 
[lkml]   [2010]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH linux-next v4 2/2] ixgbe: Example usage of the new IRQ affinity_hint callback
    On Fri, 30 Apr 2010, Peter P Waskiewicz Jr wrote:
    > + for (i = 0; i < num_q_vectors; i++) {
    > + struct ixgbe_q_vector *q_vector = adapter->q_vector[i];
    > + /* release the CPU mask memory */
    > + free_cpumask_var(q_vector->affinity_mask);
    > + /* clear the affinity_mask in the IRQ descriptor */
    > + irq_set_affinity_hint(adapter->msix_entries[i].vector, NULL);

    Freeing the mask _AFTER_ clearing the hint might be a worthwhile
    exercise :)

    Thanks,

    tglx


    \
     
     \ /
      Last update: 2010-04-30 23:51    [W:0.019 / U:0.320 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site