diff options
| author | skrll <skrll@NetBSD.org> | 2020-11-27 07:11:49 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2020-11-27 07:11:49 +0000 |
| commit | db8b79cc63d3031e793d656bb359fad03d031db4 (patch) | |
| tree | a42aa9e57c826befed8830189e06649f2b7ceff5 | |
| parent | 4613853ffe7c493de6e509791a32aa02faa8102f (diff) | |
cpu_hatched_p does necessary memory barrier so remove membar_consumer
calls from before cpu_hatched_p calls.
| -rw-r--r-- | sys/arch/arm/altera/cycv_platform.c | 5 | ||||
| -rw-r--r-- | sys/arch/arm/samsung/exynos_platform.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/arm/altera/cycv_platform.c b/sys/arch/arm/altera/cycv_platform.c index c76b848eb27..64545bd19bb 100644 --- a/sys/arch/arm/altera/cycv_platform.c +++ b/sys/arch/arm/altera/cycv_platform.c @@ -1,4 +1,4 @@ -/* $NetBSD: cycv_platform.c,v 1.14 2020/09/28 11:54:22 jmcneill Exp $ */ +/* $NetBSD: cycv_platform.c,v 1.15 2020/11/27 07:11:49 skrll Exp $ */ /* This file is in the public domain. */ @@ -7,7 +7,7 @@ #include "opt_multiprocessor.h" #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cycv_platform.c,v 1.14 2020/09/28 11:54:22 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cycv_platform.c,v 1.15 2020/11/27 07:11:49 skrll Exp $"); #define _ARM32_BUS_DMA_PRIVATE #include <sys/param.h> @@ -116,7 +116,6 @@ cycv_mpstart(void) /* Wait for secondary processor to start */ int i; for (i = 0x10000000; i > 0; i--) { - membar_consumer(); if (cpu_hatched_p(1)) break; } diff --git a/sys/arch/arm/samsung/exynos_platform.c b/sys/arch/arm/samsung/exynos_platform.c index d06c8037405..8db66c8a3ad 100644 --- a/sys/arch/arm/samsung/exynos_platform.c +++ b/sys/arch/arm/samsung/exynos_platform.c @@ -1,4 +1,4 @@ -/* $NetBSD: exynos_platform.c,v 1.31 2020/10/30 18:54:36 skrll Exp $ */ +/* $NetBSD: exynos_platform.c,v 1.32 2020/11/27 07:11:49 skrll Exp $ */ /*- * Copyright (c) 2017 Jared D. McNeill <jmcneill@invisible.ca> @@ -35,7 +35,7 @@ #include "ukbd.h" #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: exynos_platform.c,v 1.31 2020/10/30 18:54:36 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: exynos_platform.c,v 1.32 2020/11/27 07:11:49 skrll Exp $"); /* @@ -179,7 +179,6 @@ exynos5800_mpstart(void) /* Wait for AP to start */ for (n = 0x100000; n > 0; n--) { - membar_consumer(); if (cpu_hatched_p(cpuindex)) break; } |
