Module: xenomai-forge
Branch: next
Commit: 99c9d3c6f6f521c4aad4b8d98ebd402ce5dc58df
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=99c9d3c6f6f521c4aad4b8d98ebd402ce5dc58df

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Sep 23 15:50:53 2014 +0200

copperplate/clockobj: cobalt: used rounded conversion to ns in 
clockobj_get_time()

---

 lib/copperplate/clockobj.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/clockobj.c b/lib/copperplate/clockobj.c
index 18c45ca..fe823c7 100644
--- a/lib/copperplate/clockobj.c
+++ b/lib/copperplate/clockobj.c
@@ -260,7 +260,7 @@ void clockobj_get_time(struct clockobj *clkobj,
        unsigned long long ns, tsc;
 
        tsc = cobalt_read_tsc();
-       ns = cobalt_ticks_to_ns(tsc);
+       ns = cobalt_ticks_to_ns_rounded(tsc);
        if (clockobj_get_resolution(clkobj) > 1)
                ns /= clockobj_get_resolution(clkobj);
        *pticks = ns;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to