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/drm Initialize drm_core_init_complete ...
details: https://anonhg.NetBSD.org/src/rev/c9f2341c92b1
branches: trunk
changeset: 1028425:c9f2341c92b1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:01:29 2021 +0000
description:
Initialize drm_core_init_complete in drm_module.c
Linux achieves this with a module_init(drm_core_init);
Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/dist/drm/drm_drv.c | 6 +++---
sys/external/bsd/drm2/drm/drm_module.c | 7 +++++--
2 files changed, 8 insertions(+), 5 deletions(-)
diffs (55 lines):
diff -r 545205bf0a0f -r c9f2341c92b1 sys/external/bsd/drm2/dist/drm/drm_drv.c
--- a/sys/external/bsd/drm2/dist/drm/drm_drv.c Sun Dec 19 11:01:21 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_drv.c Sun Dec 19 11:01:29 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_drv.c,v 1.19 2021/12/19 09:45:25 riastradh Exp $ */
+/* $NetBSD: drm_drv.c,v 1.20 2021/12/19 11:01:29 riastradh Exp $ */
/*
* Created: Fri Jan 19 10:48:35 2001 by faith%acm.org@localhost
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.19 2021/12/19 09:45:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.20 2021/12/19 11:01:29 riastradh Exp $");
#include <linux/debugfs.h>
#include <linux/fs.h>
@@ -72,7 +72,7 @@
* prefer to embed struct drm_device into their own device
* structure and call drm_dev_init() themselves.
*/
-static bool drm_core_init_complete = false;
+bool drm_core_init_complete = false;
#ifndef __NetBSD__
static struct dentry *drm_debugfs_root;
diff -r 545205bf0a0f -r c9f2341c92b1 sys/external/bsd/drm2/drm/drm_module.c
--- a/sys/external/bsd/drm2/drm/drm_module.c Sun Dec 19 11:01:21 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_module.c Sun Dec 19 11:01:29 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_module.c,v 1.25 2021/12/19 10:36:21 riastradh Exp $ */
+/* $NetBSD: drm_module.c,v 1.26 2021/12/19 11:01:29 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.25 2021/12/19 10:36:21 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_module.c,v 1.26 2021/12/19 11:01:29 riastradh Exp $");
#include <sys/types.h>
#include <sys/condvar.h>
@@ -110,6 +110,9 @@
if (error)
return error;
+ extern bool drm_core_init_complete;
+ drm_core_init_complete = true;
+
drm_agp_hooks_init();
#if NAGP > 0
extern int drmkms_agp_guarantee_initialized(void);
Home |
Main Index |
Thread Index |
Old Index