Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bbafc0f authored by Dilip Gudlur's avatar Dilip Gudlur
Browse files

lpm: add sysfs tunable for bias hyst



Adds sysfs tunable in turned off state(0) for bias_hyst
in lpm driver.

Change-Id: Ib2777108f1be216b7ae88c4e071411fd095c5040
Signed-off-by: default avatarDilip Gudlur <dgudlur@codeaurora.org>
parent 634bfdaa
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@
#define SCLK_HZ (32768)
#define PSCI_POWER_STATE(reset) (reset << 30)
#define PSCI_AFFINITY_LEVEL(lvl) ((lvl & 0x3) << 24)
#define BIAS_HYST (5 * NSEC_PER_MSEC)
#define BIAS_HYST (bias_hyst * NSEC_PER_MSEC)

enum {
	MSM_LPM_LVL_DBG_SUSPEND_LIMITS = BIT(0),
@@ -94,6 +94,9 @@ module_param_named(ref_stddev, ref_stddev, uint, 0664);
static uint32_t tmr_add = 100;
module_param_named(tmr_add, tmr_add, uint, 0664);

static uint32_t bias_hyst;
module_param_named(bias_hyst, bias_hyst, uint, 0664);

struct lpm_history {
	uint32_t resi[MAXSAMPLES];
	int mode[MAXSAMPLES];