nasa/osal — pull request #1 by tinti (2013-06-06 19:21:07+00:00)
Title: Avoid division by zero in posix targets

The tick duration in microseconds may be calculated to zero depending on the
processor clock speed.

Maybe another solution could be using BogoMips for calculating the tick duration or even querying sysfs (i.e. /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq). Both have drawbacks and in some case zero will be get as a result.

Also BogoMips has recently change and now it can be specified at build time.