diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2011-07-13 17:38:17 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-07-13 22:28:55 -0400 |
commit | a35d9d3cf75604e9ef17faedd333bf2a66a513d8 (patch) | |
tree | 49bfbf935f3c93937a18a43389b0f5d502b79f20 | |
parent | 99834ea446d5c0da3f6cfa355fe4670840d45f79 (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.c | 24 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 20 |
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 | ||
40 | static int i915_modeset = -1; | 40 | static int i915_modeset __read_mostly = -1; |
41 | module_param_named(modeset, i915_modeset, int, 0400); | 41 | module_param_named(modeset, i915_modeset, int, 0400); |
42 | 42 | ||
43 | unsigned int i915_fbpercrtc = 0; | 43 | unsigned int i915_fbpercrtc __always_unused = 0; |
44 | module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400); | 44 | module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400); |
45 | 45 | ||
46 | int i915_panel_ignore_lid = 0; | 46 | int i915_panel_ignore_lid __read_mostly = 0; |
47 | module_param_named(panel_ignore_lid, i915_panel_ignore_lid, int, 0600); | 47 | module_param_named(panel_ignore_lid, i915_panel_ignore_lid, int, 0600); |
48 | 48 | ||
49 | unsigned int i915_powersave = 1; | 49 | unsigned int i915_powersave __read_mostly = 1; |
50 | module_param_named(powersave, i915_powersave, int, 0600); | 50 | module_param_named(powersave, i915_powersave, int, 0600); |
51 | 51 | ||
52 | unsigned int i915_semaphores = 0; | 52 | unsigned int i915_semaphores __read_mostly = 0; |
53 | module_param_named(semaphores, i915_semaphores, int, 0600); | 53 | module_param_named(semaphores, i915_semaphores, int, 0600); |
54 | 54 | ||
55 | unsigned int i915_enable_rc6 = 0; | 55 | unsigned int i915_enable_rc6 __read_mostly = 0; |
56 | module_param_named(i915_enable_rc6, i915_enable_rc6, int, 0600); | 56 | module_param_named(i915_enable_rc6, i915_enable_rc6, int, 0600); |
57 | 57 | ||
58 | unsigned int i915_enable_fbc = 1; | 58 | unsigned int i915_enable_fbc __read_mostly = 1; |
59 | module_param_named(i915_enable_fbc, i915_enable_fbc, int, 0600); | 59 | module_param_named(i915_enable_fbc, i915_enable_fbc, int, 0600); |
60 | 60 | ||
61 | unsigned int i915_lvds_downclock = 0; | 61 | unsigned int i915_lvds_downclock __read_mostly = 0; |
62 | module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400); | 62 | module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400); |
63 | 63 | ||
64 | unsigned int i915_panel_use_ssc = 1; | 64 | unsigned int i915_panel_use_ssc __read_mostly = 1; |
65 | module_param_named(lvds_use_ssc, i915_panel_use_ssc, int, 0600); | 65 | module_param_named(lvds_use_ssc, i915_panel_use_ssc, int, 0600); |
66 | 66 | ||
67 | int i915_vbt_sdvo_panel_type = -1; | 67 | int i915_vbt_sdvo_panel_type __read_mostly = -1; |
68 | module_param_named(vbt_sdvo_panel_type, i915_vbt_sdvo_panel_type, int, 0600); | 68 | module_param_named(vbt_sdvo_panel_type, i915_vbt_sdvo_panel_type, int, 0600); |
69 | 69 | ||
70 | static bool i915_try_reset = true; | 70 | static bool i915_try_reset __read_mostly = true; |
71 | module_param_named(reset, i915_try_reset, bool, 0600); | 71 | module_param_named(reset, i915_try_reset, bool, 0600); |
72 | 72 | ||
73 | bool i915_enable_hangcheck = true; | 73 | bool i915_enable_hangcheck __read_mostly = true; |
74 | module_param_named(enable_hangcheck, i915_enable_hangcheck, bool, 0644); | 74 | module_param_named(enable_hangcheck, i915_enable_hangcheck, bool, 0644); |
75 | 75 | ||
76 | static struct drm_driver driver; | 76 | static 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 | ||
989 | extern struct drm_ioctl_desc i915_ioctls[]; | 989 | extern struct drm_ioctl_desc i915_ioctls[]; |
990 | extern int i915_max_ioctl; | 990 | extern int i915_max_ioctl; |
991 | extern unsigned int i915_fbpercrtc; | 991 | extern unsigned int i915_fbpercrtc __always_unused; |
992 | extern int i915_panel_ignore_lid; | 992 | extern int i915_panel_ignore_lid __read_mostly; |
993 | extern unsigned int i915_powersave; | 993 | extern unsigned int i915_powersave __read_mostly; |
994 | extern unsigned int i915_semaphores; | 994 | extern unsigned int i915_semaphores __read_mostly; |
995 | extern unsigned int i915_lvds_downclock; | 995 | extern unsigned int i915_lvds_downclock __read_mostly; |
996 | extern unsigned int i915_panel_use_ssc; | 996 | extern unsigned int i915_panel_use_ssc __read_mostly; |
997 | extern int i915_vbt_sdvo_panel_type; | 997 | extern int i915_vbt_sdvo_panel_type __read_mostly; |
998 | extern unsigned int i915_enable_rc6; | 998 | extern unsigned int i915_enable_rc6 __read_mostly; |
999 | extern unsigned int i915_enable_fbc; | 999 | extern unsigned int i915_enable_fbc __read_mostly; |
1000 | extern bool i915_enable_hangcheck; | 1000 | extern bool i915_enable_hangcheck __read_mostly; |
1001 | 1001 | ||
1002 | extern int i915_suspend(struct drm_device *dev, pm_message_t state); | 1002 | extern int i915_suspend(struct drm_device *dev, pm_message_t state); |
1003 | extern int i915_resume(struct drm_device *dev); | 1003 | extern int i915_resume(struct drm_device *dev); |