misc: palmas: reduce system voltage monitor frequency
Somdutta Roy [Sat, 2 Jan 2016 23:54:02 +0000 (15:54 -0800)]
palmas_ldousb_in_sel_work periodically checks the system
voltage every 100 ms, increasing this to 1 second to
increase cpu idle time

Bug 1716167

Change-Id: I16a901272e5fb6b086698fa8f971467bc14767db
Signed-off-by: Somdutta Roy <somduttar@nvidia.com>
Reviewed-on: http://git-master/r/929331
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
(cherry picked from commit cb63fa51cab28aa6871fef9e9839e56a688c9e93)
Reviewed-on: http://git-master/r/1010606
Reviewed-by: Steve Rogers <srogers@nvidia.com>

drivers/misc/palmas-ldousb-in.c

index 854a821..6c3134e 100644 (file)
@@ -28,7 +28,7 @@
 
 #define LDOUSB_INPUT1                                  0
 #define LDOUSB_INPUT2                                  1
-#define PALMAS_LDOSUB_IN_SEL_CHECK_DELAY               100
+#define PALMAS_LDOSUB_IN_SEL_CHECK_DELAY               1000
 #define PALMAS_LDOSUB_IN_VOLTAGE_THRES_TOLERANCE       100
 
 struct palmas_ldousb_in_info {