| 198 | ****************************************************************************/ |
| 199 | |
| 200 | static void note_common(FAR struct tcb_s *tcb, |
| 201 | FAR struct note_common_s *note, |
| 202 | uint8_t length, uint8_t type) |
| 203 | { |
| 204 | /* Save all of the common fields */ |
| 205 | |
| 206 | note->nc_length = length; |
| 207 | note->nc_type = type; |
| 208 | note->nc_cpu = this_cpu(); |
| 209 | |
| 210 | if (tcb == NULL) |
| 211 | { |
| 212 | note->nc_priority = CONFIG_INIT_PRIORITY; |
| 213 | note->nc_pid = 0; |
| 214 | } |
| 215 | else |
| 216 | { |
| 217 | note->nc_priority = tcb->sched_priority; |
| 218 | note->nc_pid = tcb->pid; |
| 219 | } |
| 220 | |
| 221 | note->nc_systime = perf_gettime(); |
| 222 | } |
| 223 | |
| 224 | /**************************************************************************** |
| 225 | * Name: note_isenabled |
no test coverage detected