aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2011-07-13 17:38:17 -0400
committerKeith Packard <keithp@keithp.com>2011-07-13 22:28:55 -0400
commita35d9d3cf75604e9ef17faedd333bf2a66a513d8 (patch)
tree49bfbf935f3c93937a18a43389b0f5d502b79f20
parent99834ea446d5c0da3f6cfa355fe4670840d45f79 (diff)
drm/i915: add module parameter compiler hints
Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c24
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h20
2 files changed, 22 insertions, 22 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index d988cc350f66..ef5cf036364d 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -37,40 +37,40 @@
37#include <linux/console.h> 37#include <linux/console.h>
38#include "drm_crtc_helper.h" 38#include "drm_crtc_helper.h"
39 39
40static int i915_modeset = -1; 40static int i915_modeset __read_mostly = -1;
41module_param_named(modeset, i915_modeset, int, 0400); 41module_param_named(modeset, i915_modeset, int, 0400);
42 42
43unsigned int i915_fbpercrtc = 0; 43unsigned int i915_fbpercrtc __always_unused = 0;
44module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400); 44module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400);
45 45
46int i915_panel_ignore_lid = 0; 46int i915_panel_ignore_lid __read_mostly = 0;
47module_param_named(panel_ignore_lid, i915_panel_ignore_lid, int, 0600); 47module_param_named(panel_ignore_lid, i915_panel_ignore_lid, int, 0600);
48 48
49unsigned int i915_powersave = 1; 49unsigned int i915_powersave __read_mostly = 1;
50module_param_named(powersave, i915_powersave, int, 0600); 50module_param_named(powersave, i915_powersave, int, 0600);
51 51
52unsigned int i915_semaphores = 0; 52unsigned int i915_semaphores __read_mostly = 0;
53module_param_named(semaphores, i915_semaphores, int, 0600); 53module_param_named(semaphores, i915_semaphores, int, 0600);
54 54
55unsigned int i915_enable_rc6 = 0; 55unsigned int i915_enable_rc6 __read_mostly = 0;
56module_param_named(i915_enable_rc6, i915_enable_rc6, int, 0600); 56module_param_named(i915_enable_rc6, i915_enable_rc6, int, 0600);
57 57
58unsigned int i915_enable_fbc = 1; 58unsigned int i915_enable_fbc __read_mostly = 1;
59module_param_named(i915_enable_fbc, i915_enable_fbc, int, 0600); 59module_param_named(i915_enable_fbc, i915_enable_fbc, int, 0600);
60 60
61unsigned int i915_lvds_downclock = 0; 61unsigned int i915_lvds_downclock __read_mostly = 0;
62module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400); 62module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400);
63 63
64unsigned int i915_panel_use_ssc = 1; 64unsigned int i915_panel_use_ssc __read_mostly = 1;
65module_param_named(lvds_use_ssc, i915_panel_use_ssc, int, 0600); 65module_param_named(lvds_use_ssc, i915_panel_use_ssc, int, 0600);
66 66
67int i915_vbt_sdvo_panel_type = -1; 67int i915_vbt_sdvo_panel_type __read_mostly = -1;
68module_param_named(vbt_sdvo_panel_type, i915_vbt_sdvo_panel_type, int, 0600); 68module_param_named(vbt_sdvo_panel_type, i915_vbt_sdvo_panel_type, int, 0600);
69 69
70static bool i915_try_reset = true; 70static bool i915_try_reset __read_mostly = true;
71module_param_named(reset, i915_try_reset, bool, 0600); 71module_param_named(reset, i915_try_reset, bool, 0600);
72 72
73bool i915_enable_hangcheck = true; 73bool i915_enable_hangcheck __read_mostly = true;
74module_param_named(enable_hangcheck, i915_enable_hangcheck, bool, 0644); 74module_param_named(enable_hangcheck, i915_enable_hangcheck, bool, 0644);
75 75
76static struct drm_driver driver; 76static struct drm_driver driver;
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index b37146c4526f..78cdd158287a 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -988,16 +988,16 @@ struct drm_i915_file_private {
988 988
989extern struct drm_ioctl_desc i915_ioctls[]; 989extern struct drm_ioctl_desc i915_ioctls[];
990extern int i915_max_ioctl; 990extern int i915_max_ioctl;
991extern unsigned int i915_fbpercrtc; 991extern unsigned int i915_fbpercrtc __always_unused;
992extern int i915_panel_ignore_lid; 992extern int i915_panel_ignore_lid __read_mostly;
993extern unsigned int i915_powersave; 993extern unsigned int i915_powersave __read_mostly;
994extern unsigned int i915_semaphores; 994extern unsigned int i915_semaphores __read_mostly;
995extern unsigned int i915_lvds_downclock; 995extern unsigned int i915_lvds_downclock __read_mostly;
996extern unsigned int i915_panel_use_ssc; 996extern unsigned int i915_panel_use_ssc __read_mostly;
997extern int i915_vbt_sdvo_panel_type; 997extern int i915_vbt_sdvo_panel_type __read_mostly;
998extern unsigned int i915_enable_rc6; 998extern unsigned int i915_enable_rc6 __read_mostly;
999extern unsigned int i915_enable_fbc; 999extern unsigned int i915_enable_fbc __read_mostly;
1000extern bool i915_enable_hangcheck; 1000extern bool i915_enable_hangcheck __read_mostly;
1001 1001
1002extern int i915_suspend(struct drm_device *dev, pm_message_t state); 1002extern int i915_suspend(struct drm_device *dev, pm_message_t state);
1003extern int i915_resume(struct drm_device *dev); 1003extern int i915_resume(struct drm_device *dev);