]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kernel: Avoid preemption check in iommu_range_alloc()
authorVictor Aoqui <victora@linux.vnet.ibm.com>
Thu, 20 Jul 2017 17:26:06 +0000 (14:26 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Aug 2017 11:49:23 +0000 (21:49 +1000)
commit90761b9d54b67945f3448b3bf0e8f6ca6675417c
tree706f9ad972c7a968b4fd81d3c5cda532bd472f45
parente1d4227148568d57f28eb57018990807cc53a4ed
powerpc/kernel: Avoid preemption check in iommu_range_alloc()

Replace the __this_cpu_read() with raw_cpu_read() in
iommu_range_alloc(). Otherwise we get a warning about using
__this_cpu_read() in preemptible code:

  BUG: using __this_cpu_read() in preemptible
  caller is iommu_range_alloc+0xa8/0x3d0

Preemption doesn't need to be disabled since according to the comment
any CPU can safely use any IOMMU pool.

Signed-off-by: Victor Aoqui <victora@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/iommu.c