summaryrefslogtreecommitdiff
path: root/include/linux/m4sensorhub.h
diff options
context:
space:
mode:
authorViditha Hanumanthareddy <ngjq36@motorola.com>2014-07-01 12:59:44 -0500
committerViditha H <ngjq36@motorola.com>2014-07-02 18:33:40 +0000
commit293bf865f34e276119e34ad03bcd459e240ecd42 (patch)
treea97cef422dc6afac039a573c4f68649d4574cbd7 /include/linux/m4sensorhub.h
parent87657812726120dcf42db4086fcc96163dfa9907 (diff)
downloadolio-linux-3.10-293bf865f34e276119e34ad03bcd459e240ecd42.tar.xz
olio-linux-3.10-293bf865f34e276119e34ad03bcd459e240ecd42.zip
IKXCLOCK-2594: Restore pedometer data after m4 panic
When m4 panics and resets, the total stepcount start from 0, and if an app was registered for pedometer data it would start seeing stepcount restart from 0 when this happens. This fix is to avoid the app from seeing total steps go lower than the previously reported total steps. Change-Id: Ia1c803175e34e582fa132de7ca88e8762e335fe7
Diffstat (limited to 'include/linux/m4sensorhub.h')
-rw-r--r--include/linux/m4sensorhub.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/m4sensorhub.h b/include/linux/m4sensorhub.h
index c78c0914770..ff41f8dc33f 100644
--- a/include/linux/m4sensorhub.h
+++ b/include/linux/m4sensorhub.h
@@ -72,6 +72,7 @@ enum m4sensorhub_panichdl_index {
PANICHDL_FUSION_RESTORE,
PANICHDL_ALS_RESTORE,
PANICHDL_MPU9150_RESTORE,
+ PANICHDL_PEDOMETER_RESTORE,
/*
* Please add enum before PANICHDL_IRQ_RESTORE
* to make sure IRQ restore will be called last.