summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHaiyan Hu2013-09-10 05:25:37 +0200
committerMatthew Wilcox2013-11-18 23:10:51 +0100
commitb80d5ccca3a012e91ca64a2a0b13049163a6a698 (patch)
tree97d64d8d70ecc42f04ee52023c636d84c05e7a21 /include
parentRevert "init/Kconfig: add option to disable kernel compression" (diff)
downloadkernel-qcow2-linux-b80d5ccca3a012e91ca64a2a0b13049163a6a698.tar.gz
kernel-qcow2-linux-b80d5ccca3a012e91ca64a2a0b13049163a6a698.tar.xz
kernel-qcow2-linux-b80d5ccca3a012e91ca64a2a0b13049163a6a698.zip
NVMe: Avoid shift operation when writing cq head doorbell
Changes the type of dev->db_stride to unsigned and changes the value stored there to be 1 << the current value. Then there is less calculation to be done at completion time. Signed-off-by: Haiyan Hu <huhaiyan@huawei.com> Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nvme.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 26ebcf41c213..8119a476cb29 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -80,7 +80,7 @@ struct nvme_dev {
struct dma_pool *prp_small_pool;
int instance;
int queue_count;
- int db_stride;
+ u32 db_stride;
u32 ctrl_config;
struct msix_entry *entry;
struct nvme_bar __iomem *bar;