msm: mdss: Fix MDSS smp reserve pixel_ram check

MDP v(1.7) supports fixed SMP. mdp_smp_reserve API should not reserve
any SMP for this MDP version. This change fixes the API call to avoid
smp reservation when fixed SMP is enabled

Change-Id: Idf5594e216115c51f4cb4f7a2ad6ea7b9690b641
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran 2014-10-03 15:28:56 -07:00 committed by David Keitel
parent 4a921c5496
commit c4b78f594f

View file

@ -500,11 +500,15 @@ static inline bool is_unused_smp_allowed(void)
int mdss_mdp_smp_reserve(struct mdss_mdp_pipe *pipe)
{
struct mdss_data_type *mdata = mdss_mdp_get_mdata();
u32 num_blks = 0, reserved = 0;
struct mdss_mdp_plane_sizes ps;
int i, rc = 0;
bool force_alloc = 0;
if (mdata->has_pixel_ram)
return 0;
rc = mdss_mdp_calc_stride(pipe, &ps);
if (rc)
return rc;