From bf3c04884ede022001f79a13ccfc33aa0785b211 Mon Sep 17 00:00:00 2001 From: Mahesh Sivasubramanian Date: Wed, 26 Oct 2016 12:41:35 -0600 Subject: drivers: cpuidle: lpm-levels: Enable Sleep prediction Enable Sleep mode prediction by default. This predictions provides better power and CPU performance. Change-Id: Ic4791164cee1dea0cc36c8445f546b9ec56785d4 Signed-off-by: Mahesh Sivasubramanian --- drivers/cpuidle/lpm-levels.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cpuidle/lpm-levels.c b/drivers/cpuidle/lpm-levels.c index 37e504381313..de033cc37a15 100644 --- a/drivers/cpuidle/lpm-levels.c +++ b/drivers/cpuidle/lpm-levels.c @@ -85,7 +85,9 @@ struct lpm_debug { struct lpm_cluster *lpm_root_node; -static bool lpm_prediction; +#define MAXSAMPLES 5 + +static bool lpm_prediction = true; module_param_named(lpm_prediction, lpm_prediction, bool, S_IRUGO | S_IWUSR | S_IWGRP); -- cgit v1.2.3