| 781 | } |
| 782 | |
| 783 | static int |
| 784 | abs_timeout_gethz(struct abs_timeout *timo) |
| 785 | { |
| 786 | struct timespec tts; |
| 787 | |
| 788 | if (timespeccmp(&timo->end, &timo->cur, <=)) |
| 789 | return (-1); |
| 790 | timespecsub(&timo->end, &timo->cur, &tts); |
| 791 | return (tstohz(&tts)); |
| 792 | } |
| 793 | |
| 794 | static uint32_t |
| 795 | umtx_unlock_val(uint32_t flags, bool rb) |