mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
msm: vidc: reverse sort allowed_clock_tbl for shima
Clock_table entries are kept as ascending order. So always highest clk corner is picked from clock_table during clock calculation. So enable reverse sort for clk table entries to pick the right corner. Change-Id: I5adc61368aa15ae69c11a0539dcb05437bf686b4 Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
parent
60544fa814
commit
4b5d712738
1 changed files with 2 additions and 2 deletions
|
|
@ -349,7 +349,7 @@ static int msm_vidc_load_allowed_clocks_table(
|
|||
|
||||
if (res->allowed_clks_tbl) {
|
||||
d_vpr_h("allowed-clock-rates populated from platform_data\n");
|
||||
return 0;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (!of_find_property(pdev->dev.of_node,
|
||||
|
|
@ -367,7 +367,7 @@ static int msm_vidc_load_allowed_clocks_table(
|
|||
d_vpr_e("%s: failed to read allowed clocks table\n", __func__);
|
||||
return rc;
|
||||
}
|
||||
|
||||
exit:
|
||||
sort(res->allowed_clks_tbl, res->allowed_clks_tbl_size,
|
||||
sizeof(*res->allowed_clks_tbl), cmp, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue