~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/pci/iova.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        curr = iovad->cached32_node;
64
64
        cached_iova = container_of(curr, struct iova, node);
65
65
 
66
 
        if (free->pfn_lo >= cached_iova->pfn_lo)
67
 
                iovad->cached32_node = rb_next(&free->node);
 
66
        if (free->pfn_lo >= cached_iova->pfn_lo) {
 
67
                struct rb_node *node = rb_next(&free->node);
 
68
                struct iova *iova = container_of(node, struct iova, node);
 
69
 
 
70
                /* only cache if it's below 32bit pfn */
 
71
                if (node && iova->pfn_lo < iovad->dma_32bit_pfn)
 
72
                        iovad->cached32_node = node;
 
73
                else
 
74
                        iovad->cached32_node = NULL;
 
75
        }
68
76
}
69
77
 
70
78
/* Computes the padding size required, to make the