Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm cpu_hatched_p does necessary memory barrier so ...



details:   https://anonhg.NetBSD.org/src/rev/724d6c69a1af
branches:  trunk
changeset: 946422:724d6c69a1af
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Nov 27 07:11:49 2020 +0000

description:
cpu_hatched_p does necessary memory barrier so remove membar_consumer
calls from before cpu_hatched_p calls.

diffstat:

 sys/arch/arm/altera/cycv_platform.c    |  5 ++---
 sys/arch/arm/samsung/exynos_platform.c |  5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 6edede86c9f1 -r 724d6c69a1af sys/arch/arm/altera/cycv_platform.c
--- a/sys/arch/arm/altera/cycv_platform.c       Fri Nov 27 03:37:11 2020 +0000
+++ b/sys/arch/arm/altera/cycv_platform.c       Fri Nov 27 07:11:49 2020 +0000
@@ -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 @@
        /* Wait for secondary processor to start */
        int i;
        for (i = 0x10000000; i > 0; i--) {
-               membar_consumer();
                if (cpu_hatched_p(1))
                        break;
        }
diff -r 6edede86c9f1 -r 724d6c69a1af sys/arch/arm/samsung/exynos_platform.c
--- a/sys/arch/arm/samsung/exynos_platform.c    Fri Nov 27 03:37:11 2020 +0000
+++ b/sys/arch/arm/samsung/exynos_platform.c    Fri Nov 27 07:11:49 2020 +0000
@@ -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@localhost>
@@ -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 @@
 
                /* Wait for AP to start */
                for (n = 0x100000; n > 0; n--) {
-                       membar_consumer();
                        if (cpu_hatched_p(cpuindex))
                                break;
                }



Home | Main Index | Thread Index | Old Index