aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/mm/dma-default.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
index aaccf1c10699..2f26835803eb 100644
--- a/arch/mips/mm/dma-default.c
+++ b/arch/mips/mm/dma-default.c
@@ -58,8 +58,8 @@ static inline struct page *dma_addr_to_page(struct device *dev,
58static inline int cpu_is_noncoherent_r10000(struct device *dev) 58static inline int cpu_is_noncoherent_r10000(struct device *dev)
59{ 59{
60 return !plat_device_is_coherent(dev) && 60 return !plat_device_is_coherent(dev) &&
61 (current_cpu_type() == CPU_R10000 || 61 (boot_cpu_type() == CPU_R10000 ||
62 current_cpu_type() == CPU_R12000); 62 boot_cpu_type() == CPU_R12000);
63} 63}
64 64
65static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp) 65static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp)