| 109 | } |
| 110 | |
| 111 | int |
| 112 | rte_timer_data_dealloc(uint32_t id) |
| 113 | { |
| 114 | struct rte_timer_data *timer_data; |
| 115 | TIMER_DATA_VALID_GET_OR_ERR_RET(id, timer_data, -EINVAL); |
| 116 | |
| 117 | timer_data->internal_flags &= ~(FL_ALLOCATED); |
| 118 | |
| 119 | return 0; |
| 120 | } |
| 121 | |
| 122 | /* Init the timer library. Allocate an array of timer data structs in shared |
| 123 | * memory, and allocate the zeroth entry for use with original timer |