projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a74ca0
)
iommu/vt-d: Clear the redundant assignment in dmar_enable_qi
author
Yijing Wang
<wangyijing@huawei.com>
Tue, 20 May 2014 12:37:49 +0000
(20:37 +0800)
committer
Joerg Roedel
<jroedel@suse.de>
Fri, 4 Jul 2014 09:33:52 +0000
(11:33 +0200)
__dmar_enable_qi() will initialize free_head,free_tail and
free_cnt for q_inval. Remove the redundant initialization
in dmar_enable_qi().
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dmar.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/dmar.c
b/drivers/iommu/dmar.c
index 9a4f05e5b23fa480e308d0b44373e6599ad82982..f2eb0bc419f8e0879eb7da8a477e9b79d8ccc75e 100644
(file)
--- a/
drivers/iommu/dmar.c
+++ b/
drivers/iommu/dmar.c
@@
-1339,9
+1339,6
@@
int dmar_enable_qi(struct intel_iommu *iommu)
return -ENOMEM;
}
- qi->free_head = qi->free_tail = 0;
- qi->free_cnt = QI_LENGTH;
-
raw_spin_lock_init(&qi->q_lock);
__dmar_enable_qi(iommu);