diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-09-09 21:13:06 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-09-24 14:17:06 -0600 |
commit | 0ce0e62f1f7893f983a8f61bc8f5306e80d520b1 (patch) | |
tree | 2087e94dadc26d2ae49444577bcca17943b84fa2 /block/blk-softirq.c | |
parent | dcaa73dc3411c4d771d1d6a950c6b8a9c71da089 (diff) |
IB/qib: Use pcie_set_mps() and pcie_get_mps() to simplify code
Refactor qib_tune_pcie_caps(). Use pcie_get_mps(), pcie_set_mps(),
pcie_get_readrq(), and pcie_set_readrq() to simplify the code. The PCI
core caches the "PCIe Max Payload Size Supported" in pci_dev->pcie_mpss,
so use that instead of pcie_capability_read_word(). Remove the unused
val2fld() and fld2val().
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Diffstat (limited to 'block/blk-softirq.c')
0 files changed, 0 insertions, 0 deletions