Initialize the timer handle tim for use */
| 204 | |
| 205 | /* Initialize the timer handle tim for use */ |
| 206 | void |
| 207 | rte_timer_init(struct rte_timer *tim) |
| 208 | { |
| 209 | union rte_timer_status status; |
| 210 | |
| 211 | status.state = RTE_TIMER_STOP; |
| 212 | status.owner = RTE_TIMER_NO_OWNER; |
| 213 | rte_atomic_store_explicit(&tim->status.u32, status.u32, rte_memory_order_relaxed); |
| 214 | } |
| 215 | |
| 216 | /* |
| 217 | * if timer is pending or stopped (or running on the same core than |
no outgoing calls