Commit e35e5079 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl/clock: switch timer oob_read() return to u64 value



Better align with the regular timerfd API for POLA and simpler
emulation.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent 8c3c356b
......@@ -10,7 +10,7 @@
#include <linux/types.h>
#include <uapi/evl/sched.h>
#define EVL_ABI_LEVEL 10
#define EVL_ABI_LEVEL 11
#define EVL_CONTROL_DEV "/dev/evl/control"
......
......@@ -697,7 +697,7 @@ static long timerfd_common_ioctl(struct file *filp,
static ssize_t timerfd_oob_read(struct file *filp,
char __user *u_buf, size_t count)
{
__u32 __user *u_ticks = (__u32 __user *)u_buf, ticks = 0;
__u64 __user *u_ticks = (__u64 __user *)u_buf, ticks = 0;
struct evl_timerfd *timerfd = filp->private_data;
ktime_t timeout = EVL_INFINITE;
int ret;
......@@ -715,7 +715,7 @@ static ssize_t timerfd_oob_read(struct file *filp,
ticks = 1;
if (evl_timer_is_periodic(&timerfd->timer))
ticks += (u32)evl_get_timer_overruns(&timerfd->timer);
ticks += evl_get_timer_overruns(&timerfd->timer);
if (raw_put_user(ticks, u_ticks))
return -EFAULT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment