aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-07-05 04:57:20 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-05 13:03:59 -0400
commit888fd1594e38c21f8dc5aa28b90a556df32f61e0 (patch)
tree7e0506592cbf0ab0f9289fc0758462be2f9ecb04 /drivers/gpu/drm/i915/intel_pm.c
parent1fda9882ca0ba134134c5bf04b8d4f4f06b52649 (diff)
drm/i915: Change the watermark latency type to uint16_t
The latency values fit in uint16_t, so let's save a few bytes. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 1a80787f4258..faa4ef6c33c4 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -2353,7 +2353,7 @@ hsw_compute_linetime_wm(struct drm_device *dev, struct drm_crtc *crtc)
2353 2353
2354static void hsw_compute_wm_parameters(struct drm_device *dev, 2354static void hsw_compute_wm_parameters(struct drm_device *dev,
2355 struct hsw_pipe_wm_parameters *params, 2355 struct hsw_pipe_wm_parameters *params,
2356 uint32_t *wm, 2356 uint16_t *wm,
2357 struct hsw_wm_maximums *lp_max_1_2, 2357 struct hsw_wm_maximums *lp_max_1_2,
2358 struct hsw_wm_maximums *lp_max_5_6) 2358 struct hsw_wm_maximums *lp_max_5_6)
2359{ 2359{
@@ -2426,7 +2426,7 @@ static void hsw_compute_wm_parameters(struct drm_device *dev,
2426 2426
2427static void hsw_compute_wm_results(struct drm_device *dev, 2427static void hsw_compute_wm_results(struct drm_device *dev,
2428 struct hsw_pipe_wm_parameters *params, 2428 struct hsw_pipe_wm_parameters *params,
2429 uint32_t *wm, 2429 uint16_t *wm,
2430 struct hsw_wm_maximums *lp_maximums, 2430 struct hsw_wm_maximums *lp_maximums,
2431 struct hsw_wm_values *results) 2431 struct hsw_wm_values *results)
2432{ 2432{
@@ -2608,7 +2608,7 @@ static void haswell_update_wm(struct drm_device *dev)
2608 struct hsw_wm_maximums lp_max_1_2, lp_max_5_6; 2608 struct hsw_wm_maximums lp_max_1_2, lp_max_5_6;
2609 struct hsw_pipe_wm_parameters params[3]; 2609 struct hsw_pipe_wm_parameters params[3];
2610 struct hsw_wm_values results_1_2, results_5_6, *best_results; 2610 struct hsw_wm_values results_1_2, results_5_6, *best_results;
2611 uint32_t wm[5]; 2611 uint16_t wm[5];
2612 enum hsw_data_buf_partitioning partitioning; 2612 enum hsw_data_buf_partitioning partitioning;
2613 2613
2614 hsw_compute_wm_parameters(dev, params, wm, &lp_max_1_2, &lp_max_5_6); 2614 hsw_compute_wm_parameters(dev, params, wm, &lp_max_1_2, &lp_max_5_6);