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)
commit75f327c6b75715f3a090daeb33e05003aaffb010
tree706f9ad972c7a968b4fd81d3c5cda532bd472f45
parent24be85a23d1fcdc72264a062a2e4ebaaea48feab
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