]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Factor out setting the remap table for a devid
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 22 Mar 2018 15:22:39 +0000 (16:22 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 08:38:16 +0000 (10:38 +0200)
commit278f18add9bd2dfb8ae1aa7f17c7bbf7348c42af
tree2bc696ddcbd9ecf5ed0afca0cd594a3939415239
parenta67b07fb81f3572ee1d4f52afee5a4233a5b1089
iommu/amd: Factor out setting the remap table for a devid

Setting the IRQ remap table for a specific devid (or its alias devid)
includes three steps. Those three steps are always repeated each time
this is done.
Introduce a new helper function, move those steps there and use that
function instead. The compiler can still decide if it is worth to
inline.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c