hrtimer sampling frequency must be an integral number,
so round to smallest integral value not less than the
passed frequency.
Change-Id: I0e7ca644dee3f679b1e26f422e3d87eedf7c7482
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
ALOGI("Sensor %d (%s) sampling rate set to %g\n", s, sensor[s].friendly_name, arb_sampling_rate);
if (sensor[s].hrtimer_trigger_name[0] != '\0')
- sysfs_write_float(hrtimer_sampling_path, arb_sampling_rate);
+ sysfs_write_float(hrtimer_sampling_path, ceilf(arb_sampling_rate));
if (trig_sensors_per_dev[dev_num])
enable_buffer(dev_num, 0);