[RTEMS Project] #2182: broken RTEMS CLOCKS_PER_SEC interface, when including only time.h

RTEMS trac trac at rtems.org
Wed Feb 25 19:55:49 UTC 2015


#2182: broken RTEMS CLOCKS_PER_SEC interface, when including only time.h
--------------------+----------------------------
 Reporter:  johill  |       Owner:  joel.sherrill
     Type:  defect  |      Status:  new
 Priority:  normal  |   Milestone:  4.11
Component:  libcpu  |     Version:  4.10
 Severity:  normal  |  Resolution:
 Keywords:          |
--------------------+----------------------------

Comment (by gedare):

 I added two patches (untested) that may fix the bug. I'm a little bit
 confused about the original logic in the #ifndef
 !__RTEMS_USE_TICKS_FOR_STATISTICS!__ part though. Why does it divide ticks
 by 100 when assigning to tms_utime? I got rid of that division but maybe
 it belongs?

--
Ticket URL: <http://devel.rtems.org/ticket/2182#comment:5>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list