power: bcl_peripheral: Enable BCL LMH algorithm only once
Currently BCL LMH algorithm enable request goes for every time BCL threshold enablement. It needs to be enabled only once. So Enable BCL LMH algorithm only once. Change-Id: I94c7326b7730830f71b71c92df21a589ddd2347b Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
This commit is contained in:
parent
1e42f4cc4f
commit
514e483a47
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License version 2 and
|
* it under the terms of the GNU General Public License version 2 and
|
||||||
|
@ -482,8 +482,10 @@ static int bcl_access_monitor_enable(bool enable)
|
||||||
if (enable == bcl_perph->enabled)
|
if (enable == bcl_perph->enabled)
|
||||||
goto access_exit;
|
goto access_exit;
|
||||||
|
|
||||||
if ((bcl_perph_version == BCL_PMI8998) && !hw_enabled && enable)
|
if ((bcl_perph_version == BCL_PMI8998) && !hw_enabled && enable) {
|
||||||
bcl_lmh_dcvs_enable();
|
bcl_lmh_dcvs_enable();
|
||||||
|
hw_enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
for (; i < BCL_PARAM_MAX; i++) {
|
for (; i < BCL_PARAM_MAX; i++) {
|
||||||
perph_data = &bcl_perph->param[i];
|
perph_data = &bcl_perph->param[i];
|
||||||
|
|
Loading…
Add table
Reference in a new issue