* Public system clock wrapper API which allows consumers to select which clock * to obtain time from, independent of the current default system clock. These * wrappers should be used instead of directly calling the underlying fbclock_ * or ffclock_ functions. */
| 258 | * or ffclock_ functions. |
| 259 | */ |
| 260 | static inline void |
| 261 | bintime_fromclock(struct bintime *bt, int whichclock) |
| 262 | { |
| 263 | |
| 264 | if (whichclock == SYSCLOCK_FFWD) |
| 265 | ffclock_bintime(bt); |
| 266 | else |
| 267 | fbclock_bintime(bt); |
| 268 | } |
| 269 | |
| 270 | static inline void |
| 271 | nanotime_fromclock(struct timespec *tsp, int whichclock) |
no test coverage detected