Module Name: src Committed By: riastradh Date: Mon Aug 27 06:48:01 UTC 2018
Modified Files: src/sys/external/bsd/drm2/dist/drm: drm_atomic.c Log Message: ACCESS_ONCE -> __insn_barrier To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/dist/drm/drm_atomic.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/dist/drm/drm_atomic.c diff -u src/sys/external/bsd/drm2/dist/drm/drm_atomic.c:1.3 src/sys/external/bsd/drm2/dist/drm/drm_atomic.c:1.4 --- src/sys/external/bsd/drm2/dist/drm/drm_atomic.c:1.3 Mon Aug 27 06:47:35 2018 +++ src/sys/external/bsd/drm2/dist/drm/drm_atomic.c Mon Aug 27 06:48:01 2018 @@ -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 @@ drm_atomic_state_init(struct drm_device */ 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);