OSDN Git Service

hrtimers: don't consider available freqs when choosing sampling rate
authorConstantin Musca <constantin.musca@intel.com>
Fri, 17 Jul 2015 12:45:21 +0000 (15:45 +0300)
committerbuildslave <sys_buildbot@intel.com>
Fri, 17 Jul 2015 19:46:42 +0000 (19:46 +0000)
commitd756673cdebf18fc1a34e3e3086b1acae28beecb
tree8b2737810a504c135fac509d0dc817a0516719df
parent7cd81fdc7efe226918e172a65c93b5bdbb10efdf
hrtimers: don't consider available freqs when choosing sampling rate

The hrtimer sampling rate is set to the lowest available sensor freq
higher than the requested sampling rate.
Don't let the hrtimer sampling rate to be influenced by available freqs,
but write to the sensor's sampling rate interface the closest value.

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-13721
Change-Id: I85095261d0259f40ec19ff45c45ba0a230a904b9
Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Reviewed-on: https://android.intel.com:443/391322
control.c
description.c