Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm ACCESS_ONCE -> __insn_barrier
details: https://anonhg.NetBSD.org/src/rev/ea92c497863c
branches: trunk
changeset: 992498:ea92c497863c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 06:48:01 2018 +0000
description:
ACCESS_ONCE -> __insn_barrier
diffstat:
sys/external/bsd/drm2/dist/drm/drm_atomic.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r dde2f0377383 -r ea92c497863c sys/external/bsd/drm2/dist/drm/drm_atomic.c
--- a/sys/external/bsd/drm2/dist/drm/drm_atomic.c Mon Aug 27 06:47:51 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_atomic.c Mon Aug 27 06:48:01 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_atomic.c,v 1.3 2018/08/27 06:47:35 riastradh Exp $ */
+/* $NetBSD: drm_atomic.c,v 1.4 2018/08/27 06:48:01 riastradh Exp $ */
/*
* Copyright (C) 2014 Red Hat
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_atomic.c,v 1.3 2018/08/27 06:47:35 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_atomic.c,v 1.4 2018/08/27 06:48:01 riastradh Exp $");
#include <linux/export.h>
@@ -72,7 +72,8 @@
*/
state->allow_modeset = true;
- state->num_connector = ACCESS_ONCE(dev->mode_config.num_connector);
+ state->num_connector = dev->mode_config.num_connector;
+ __insn_barrier();
state->crtcs = kcalloc(dev->mode_config.num_crtc,
sizeof(*state->crtcs), GFP_KERNEL);
Home |
Main Index |
Thread Index |
Old Index