The poll delay should be maximum if we're operating in continuous mode
even if the sensor supports a motion trigger. This should very slightly
lower CPU consumption, avoiding a few unrequired exits from epoll.
Issue: IRDA-1184
Change-Id: I026be3de5fed49b77f7d9ac3718ab7c71e527d9d
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
*/
for (s=0; s<sensor_count; s++)
if (sensor_info[s].enable_count &&
- ((sensor_info[s].quirks & QUIRK_TERSE_DRIVER) ||
- sensor_info[s].selected_trigger ==
- sensor_info[s].motion_trigger_name) &&
- sensor_info[s].sampling_rate) {
+ sensor_info[s].selected_trigger ==
+ sensor_info[s].motion_trigger_name &&
+ sensor_info[s].sampling_rate) {
period = (int64_t) (1000000000.0 /
sensor_info[s].sampling_rate);