summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */