powerpc/kernel: Avoid preemption check during iommu_range_alloc
PATCH 1/1 powerpc/kernel: Avoid preemption check during iommu_range_alloc
Replaced __this_cpu_read function call by raw_cpu_read in iommu_range_alloc function.
Preemption doesn't need to be disabled since any CPU can safely use IOMMU pool.
Signed-off-by Victor Aoqui <[email protected]>
--- arch/powerpc/kernel/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/iommu.c +1 -1
@@ -208,7 +208,7 @@ static unsigned long iommu_range_alloc(struct device *dev,* We don't need to disable preemption here because any CPU can * safely use any IOMMU pool. */ - pool_nr =__this_cpu_read (iommu_pool_hash) & (tbl->nr_pools -1 ); + pool_nr =raw_cpu_read (iommu_pool_hash) & (tbl->nr_pools -1 );if (largealloc) pool = &(tbl->large_pool);
Signature · 1 line
1.8.3.1
Michael Ellerman
AppliedQuoted 6 lines · victora
Replaced
__this_cpu_readfunction call byraw_cpu_readiniommu_range_allocfunction.
Preemption doesn't need to be disabled since any CPU can safely use IOMMU pool.Signed-off-by Victor Aoqui <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/75f327c6b75715f3a090daeb33e050
cheers