summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-06-19 09:17:53 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-06-19 09:17:53 +0000
commitbaa2d8d2d384d0c9d433a5f25c2c4c7f8d304eab (patch)
tree14b4e4e4c07cf703374312fc57096a0fd62da85e /sys/dev/pci
parent174ba78f1e6fa34b77a03482c669776285d3ba0f (diff)
reduce the diff to linux
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/drm_fb_helper.c4
-rw-r--r--sys/dev/pci/drm/include/generated/autoconf.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/drm_fb_helper.c b/sys/dev/pci/drm/drm_fb_helper.c
index 7f161ffe594..c744d0b67c4 100644
--- a/sys/dev/pci/drm/drm_fb_helper.c
+++ b/sys/dev/pci/drm/drm_fb_helper.c
@@ -54,15 +54,11 @@ module_param_named(fbdev_emulation, drm_fbdev_emulation, bool, 0600);
MODULE_PARM_DESC(fbdev_emulation,
"Enable legacy fbdev emulation [default=true]");
-#ifdef __linux__
static int drm_fbdev_overalloc = CONFIG_DRM_FBDEV_OVERALLOC;
module_param(drm_fbdev_overalloc, int, 0444);
MODULE_PARM_DESC(drm_fbdev_overalloc,
"Overallocation of the fbdev buffer (%) [default="
__MODULE_STRING(CONFIG_DRM_FBDEV_OVERALLOC) "]");
-#else
-static int drm_fbdev_overalloc = 100;
-#endif
/*
* In order to keep user-space compatibility, we want in certain use-cases
diff --git a/sys/dev/pci/drm/include/generated/autoconf.h b/sys/dev/pci/drm/include/generated/autoconf.h
index 078a9b42e9c..58b9776ac6d 100644
--- a/sys/dev/pci/drm/include/generated/autoconf.h
+++ b/sys/dev/pci/drm/include/generated/autoconf.h
@@ -15,6 +15,8 @@
#define CONFIG_DRM_AMDGPU_SI 1
#endif
+#define CONFIG_DRM_FBDEV_OVERALLOC 100
+
#define CONFIG_DRM_I915_PREEMPT_TIMEOUT 640 /* ms */
#define CONFIG_DRM_I915_TIMESLICE_DURATION 1 /* ms */
#define CONFIG_DRM_I915_HEARTBEAT_INTERVAL 2500 /* ms */