summaryrefslogtreecommitdiff
path: root/arch/mips/loongson64
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2023-02-21 13:16:55 +0000
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2023-03-14 17:06:15 +0100
commitac24cc1835c8e6400230f0bf50e6ba0ab75cb09f (patch)
tree7498abdf6166f78af05b4f7d6f5ad6752402951d /arch/mips/loongson64
parent5bd3990723bdf43333b2c268cc6644cb1961125b (diff)
MIPS: Loongson64: smp: Use nudge_writes instead of wbflush
wbflush here intends to let other cores see the results ASAP, nudge_writes fits this purpose better. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/loongson64')
-rw-r--r--arch/mips/loongson64/smp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/loongson64/smp.c b/arch/mips/loongson64/smp.c
index c268c6dd1ef1..e9d91da7fe24 100644
--- a/arch/mips/loongson64/smp.c
+++ b/arch/mips/loongson64/smp.c
@@ -42,13 +42,13 @@ static uint32_t core0_c0count[NR_CPUS];
#define loongson3_ipi_write32(action, addr) \
do { \
writel(action, addr); \
- __wbflush(); \
+ nudge_writes(); \
} while (0)
/* write a 64bit value to ipi register */
#define loongson3_ipi_write64(action, addr) \
do { \
writeq(action, addr); \
- __wbflush(); \
+ nudge_writes(); \
} while (0)
static u32 (*ipi_read_clear)(int cpu);
@@ -418,7 +418,7 @@ static irqreturn_t loongson3_ipi_interrupt(int irq, void *dev_id)
c0count = c0count ? c0count : 1;
for (i = 1; i < nr_cpu_ids; i++)
core0_c0count[i] = c0count;
- __wbflush(); /* Let others see the result ASAP */
+ nudge_writes(); /* Let others see the result ASAP */
}
return IRQ_HANDLED;