diff options
| author | Evan Wilson <evan@oliodevices.com> | 2015-11-30 18:07:29 -0800 |
|---|---|---|
| committer | Evan Wilson <evan@oliodevices.com> | 2015-11-30 18:07:29 -0800 |
| commit | 6eb0df9bf0ae1e165ffe043333f21a9fd74df768 (patch) | |
| tree | a2a18e31bdf844cf3d5a001d820307117a5475d4 /drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c | |
| parent | 3c68bb7d91a4cada502bc4e0825cde694f5f6364 (diff) | |
| download | olio-linux-3.10-6eb0df9bf0ae1e165ffe043333f21a9fd74df768.tar.xz olio-linux-3.10-6eb0df9bf0ae1e165ffe043333f21a9fd74df768.zip | |
Tuning values for wakedector:
* Reducing the 6D threshold, so it doesn't fire as often
* Reducing the wake lock timeout, to conserve power
* Temporarily commenting out the 6D event, because it's not used by the wakedetector service yet
Change-Id: I95345b4cd8b6b9c39b26f6378eab888101b3c296
Diffstat (limited to 'drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c')
| -rw-r--r-- | drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c b/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c index a7925638dba..4ee21595362 100644 --- a/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c +++ b/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c @@ -201,13 +201,13 @@ static void st_lsm6ds3_irq_management(struct work_struct *data_work) } if(!ignore_event && (tap_event || d6d_event) && cdata->first_irq_from_resume){ - wake_lock_timeout(&cdata->tap_wlock,msecs_to_jiffies(1000)); + wake_lock_timeout(&cdata->tap_wlock,msecs_to_jiffies(500)); #ifdef WAKE_STATS_DEBUG_INFO wakeup_irq_stayawake_count++; #endif - if (d6d_event) { - st_lsm6ds3_push_d6d_to_fifo(cdata); - } + //if (d6d_event) { + // st_lsm6ds3_push_d6d_to_fifo(cdata); + //} } else if(d6d_event && !ignore_event){//negative roll wake_lock_timeout(&cdata->tap_wlock,msecs_to_jiffies(200)); |