Skip to content

Commit

Permalink
qce50: Update clock vote for improved performance.
Browse files Browse the repository at this point in the history
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
Signed-off-by: Javier Sayago <admin@lonasdigital.com>
  • Loading branch information
Ajay Dudani authored and javilonas committed May 27, 2015
1 parent 87ca5e3 commit 511da83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-msm/clock-8084.c
Expand Up @@ -2552,7 +2552,7 @@ static struct local_vote_clk gcc_ce2_clk = {
.en_mask = BIT(2),
.base = &virt_bases[GCC_BASE],
.c = {
.parent = &branch_ce2_clk_src.c,
.parent = &ce2_clk_src.c,
.dbg_name = "gcc_ce2_clk",
.ops = &clk_ops_vote,
CLK_INIT(gcc_ce2_clk.c),
Expand Down Expand Up @@ -5414,7 +5414,7 @@ static DEFINE_CLK_VOTER(branch_ce1_clk_src, &ce1_clk_src.c, 50000000);

static DEFINE_CLK_VOTER(qseecom_ce2_clk_src, &ce2_clk_src.c, 100000000);
static DEFINE_CLK_VOTER(qcedev_ce2_clk_src, &ce2_clk_src.c, 100000000);
static DEFINE_CLK_VOTER(qcrypto_ce2_clk_src, &ce2_clk_src.c, 100000000);
static DEFINE_CLK_VOTER(qcrypto_ce2_clk_src, &ce2_clk_src.c, 171430000);
static DEFINE_CLK_VOTER(branch_ce2_clk_src, &ce2_clk_src.c, 50000000);

static DEFINE_CLK_MEASURE(l2_m_clk);
Expand Down
6 changes: 3 additions & 3 deletions drivers/crypto/msm/qce50.c
Expand Up @@ -5233,12 +5233,12 @@ static int __qce_init_clk(struct qce_device *pce_dev)
if (!IS_ERR(ce_core_src_clk)) {
pce_dev->ce_core_src_clk = ce_core_src_clk;

/* Set the core src clk @100Mhz */
rc = clk_set_rate(pce_dev->ce_core_src_clk, 100000000);
/* Set the core src clk @171Mhz */
rc = clk_set_rate(pce_dev->ce_core_src_clk, 171430000);
if (rc) {
clk_put(pce_dev->ce_core_src_clk);
pce_dev->ce_core_src_clk = NULL;
pr_err("Unable to set the core src clk @100Mhz.\n");
pr_err("Unable to set the core src clk @171Mhz.\n");
goto err_clk;
}
} else {
Expand Down

0 comments on commit 511da83

Please sign in to comment.