Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern rumpkern/scheduler: Use membar_rel...
details: https://anonhg.NetBSD.org/src/rev/5dd50ac3131b
branches: trunk
changeset: 365165:5dd50ac3131b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Apr 09 23:45:14 2022 +0000
description:
rumpkern/scheduler: Use membar_release.
...but add an XXX comment asking for clarity on what it pairs with.
diffstat:
sys/rump/librump/rumpkern/scheduler.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5bad7ef9ff57 -r 5dd50ac3131b sys/rump/librump/rumpkern/scheduler.c
--- a/sys/rump/librump/rumpkern/scheduler.c Sat Apr 09 23:45:02 2022 +0000
+++ b/sys/rump/librump/rumpkern/scheduler.c Sat Apr 09 23:45:14 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scheduler.c,v 1.52 2020/11/01 20:58:38 christos Exp $ */
+/* $NetBSD: scheduler.c,v 1.53 2022/04/09 23:45:14 riastradh Exp $ */
/*
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scheduler.c,v 1.52 2020/11/01 20:58:38 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scheduler.c,v 1.53 2022/04/09 23:45:14 riastradh Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -473,7 +473,7 @@
if (interlock == rcpu->rcpu_mtx)
rumpuser_mutex_enter_nowrap(rcpu->rcpu_mtx);
else
- membar_exit();
+ membar_release(); /* XXX what does this pair with? */
/* Release the CPU. */
old = atomic_swap_ptr(&rcpu->rcpu_prevlwp, l);
Home |
Main Index |
Thread Index |
Old Index