summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-09-06 19:08:25 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-09-06 19:08:25 +0200
commiteb37e6ddf75a3d4c59e38193a7c8d409f5bd7d57 (patch)
treed856689814a1af27e65a445bd69e9f816ee62a7a /arch/mips
parentMerge branch '3.11-fixes' into mips-for-linux-next (diff)
parentMIPS: DMA: Fix BUG due to smp_processor_id() in preemptible code (diff)
downloadlinux-eb37e6ddf75a3d4c59e38193a7c8d409f5bd7d57.tar.xz
linux-eb37e6ddf75a3d4c59e38193a7c8d409f5bd7d57.zip
Merge branch '3.11-fixes' into mips-for-linux-next
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/mm/dma-default.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
index 468f7f967f97..664e523653d0 100644
--- a/arch/mips/mm/dma-default.c
+++ b/arch/mips/mm/dma-default.c
@@ -61,9 +61,9 @@ static inline struct page *dma_addr_to_page(struct device *dev,
static inline int cpu_needs_post_dma_flush(struct device *dev)
{
return !plat_device_is_coherent(dev) &&
- (current_cpu_type() == CPU_R10000 ||
- current_cpu_type() == CPU_R12000 ||
- current_cpu_type() == CPU_BMIPS5000);
+ (boot_cpu_type() == CPU_R10000 ||
+ boot_cpu_type() == CPU_R12000 ||
+ boot_cpu_type() == CPU_BMIPS5000);
}
static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp)