|
@@ -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
|
|
* We don't need to disable preemption here because any CPU can
|
|
* safely use any IOMMU pool.
|
|
* 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)
|
|
if (largealloc)
|
|
pool = &(tbl->large_pool);
|
|
pool = &(tbl->large_pool);
|