* time_before - is a before b? * @a: one absolute time. * @b: another absolute time. * * Example: * static bool still_valid(const struct timeabs *start) * { * #define TIMEOUT time_from_msec(1000) * return time_before(time_now(), timeabs_add(*start, TIMEOUT)); * } */
| 216 | * } |
| 217 | */ |
| 218 | static inline bool time_before(struct timeabs a, struct timeabs b) |
| 219 | { |
| 220 | return time_less_(a.ts, b.ts); |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * time_less - is a before b? |