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

« back to all changes in this revision

Viewing changes to drivers/infiniband/hw/cxgb4/cq.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:
801
801
        if (ucontext) {
802
802
                memsize = roundup(memsize, PAGE_SIZE);
803
803
                hwentries = memsize / sizeof *chp->cq.queue;
 
804
                while (hwentries > T4_MAX_IQ_SIZE) {
 
805
                        memsize -= PAGE_SIZE;
 
806
                        hwentries = memsize / sizeof *chp->cq.queue;
 
807
                }
804
808
        }
805
809
        chp->cq.size = hwentries;
806
810
        chp->cq.memsize = memsize;