Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/drm Initialize and destroy dr...
details: https://anonhg.NetBSD.org/src/rev/9b1ca0496500
branches: riastradh-drm2
changeset: 788503:9b1ca0496500
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Sep 08 15:26:24 2013 +0000
description:
Initialize and destroy drm_global_mutex on module init/fini.
diffstat:
sys/external/bsd/drm2/drm/drm_module.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (44 lines):
diff -r b0ca2ed01af7 -r 9b1ca0496500 sys/external/bsd/drm2/drm/drm_module.c
--- a/sys/external/bsd/drm2/drm/drm_module.c Wed Jul 24 04:05:34 2013 +0000
+++ b/sys/external/bsd/drm2/drm/drm_module.c Sun Sep 08 15:26:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_module.c,v 1.1.2.5 2013/07/24 03:51:04 riastradh Exp $ */
+/* $NetBSD: drm_module.c,v 1.1.2.6 2013/09/08 15:26:24 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_module.c,v 1.1.2.5 2013/07/24 03:51:04 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_module.c,v 1.1.2.6 2013/09/08 15:26:24 riastradh Exp $");
#include <sys/types.h>
#include <sys/device.h>
@@ -38,6 +38,9 @@
#include <sys/systm.h>
#include <linux/highmem.h>
+#include <linux/mutex.h>
+
+#include <drm/drmP.h>
/*
* XXX I2C stuff should be moved to a separate drm2edid module.
@@ -65,6 +68,7 @@
switch (cmd) {
case MODULE_CMD_INIT:
+ linux_mutex_init(&drm_global_mutex);
error = linux_kmap_init();
if (error) {
aprint_error("drm: unable to initialize linux kmap:"
@@ -105,6 +109,7 @@
return error;
#endif
linux_kmap_fini();
+ linux_mutex_destroy(&drm_global_mutex);
return 0;
default:
Home |
Main Index |
Thread Index |
Old Index