diff options
| author | Viditha Hanumanthareddy <ngjq36@motorola.com> | 2014-05-14 07:17:14 -0500 |
|---|---|---|
| committer | Viditha H <ngjq36@motorola.com> | 2014-05-14 16:53:22 +0000 |
| commit | 281ee14b6350aa2cd341507816a28fc067b3578a (patch) | |
| tree | 9d9298d0a463c2ca896a71828c7ffb9a06c8bac6 /drivers/misc/m4sensorhub_pedometer.c | |
| parent | 65fcccea0ee3987f0fef3047adde958e7cd62103 (diff) | |
| download | olio-linux-3.10-281ee14b6350aa2cd341507816a28fc067b3578a.tar.xz olio-linux-3.10-281ee14b6350aa2cd341507816a28fc067b3578a.zip | |
IKXCLOCK-1233: Hold a timed wakelock for m4 events
A few m4 interrupts/events like gesture, rtc alarm that
can occur when kernel is suspended need enough time
to allow the event to reach the higher layer before
kernel suspends again. The absence of this was causing
gestures & rtc alarm to get missed by the higher layers.
Change-Id: Ibf10a1a031bd279ef2a488214498036c648220dc
Diffstat (limited to 'drivers/misc/m4sensorhub_pedometer.c')
| -rw-r--r-- | drivers/misc/m4sensorhub_pedometer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/m4sensorhub_pedometer.c b/drivers/misc/m4sensorhub_pedometer.c index 87fd15be3f3..4f80122c7e1 100644 --- a/drivers/misc/m4sensorhub_pedometer.c +++ b/drivers/misc/m4sensorhub_pedometer.c @@ -546,14 +546,14 @@ static int m4ped_driver_init(struct init_calldata *p_arg) } err = m4sensorhub_irq_register(dd->m4, - M4SH_IRQ_PEDOMETER_DATA_READY, m4ped_isr, iio); + M4SH_IRQ_PEDOMETER_DATA_READY, m4ped_isr, iio, 0); if (err < 0) { m4ped_err("%s: Failed to register M4 PED IRQ.\n", __func__); goto m4ped_driver_init_fail; } err = m4sensorhub_irq_register(dd->m4, - M4SH_IRQ_ACTIVITY_CHANGE, m4ped_isr, iio); + M4SH_IRQ_ACTIVITY_CHANGE, m4ped_isr, iio, 0); if (err < 0) { m4ped_err("%s: Failed to register M4 ACT IRQ.\n", __func__); goto m4ped_driver_init_irq_act_fail; |