| 858 | } |
| 859 | |
| 860 | void sched_note_cpu_started(FAR struct tcb_s *tcb) |
| 861 | { |
| 862 | struct note_cpu_started_s note; |
| 863 | FAR struct note_driver_s **driver; |
| 864 | bool formatted = false; |
| 865 | |
| 866 | for (driver = g_note_drivers; *driver; driver++) |
| 867 | { |
| 868 | if (!note_isenabled(*driver)) |
| 869 | { |
| 870 | continue; |
| 871 | } |
| 872 | |
| 873 | if (note_cpu_started(*driver, tcb)) |
| 874 | { |
| 875 | continue; |
| 876 | } |
| 877 | |
| 878 | if ((*driver)->ops->add == NULL) |
| 879 | { |
| 880 | continue; |
| 881 | } |
| 882 | |
| 883 | /* Format the note */ |
| 884 | |
| 885 | if (!formatted) |
| 886 | { |
| 887 | formatted = true; |
| 888 | note_common(tcb, ¬e.ncs_cmn, sizeof(struct note_cpu_started_s), |
| 889 | NOTE_CPU_STARTED); |
| 890 | } |
| 891 | |
| 892 | /* Add the note to circular buffer */ |
| 893 | |
| 894 | note_add(*driver, ¬e, sizeof(struct note_cpu_started_s)); |
| 895 | } |
| 896 | } |
| 897 | |
| 898 | void sched_note_cpu_pause(FAR struct tcb_s *tcb, int cpu) |
| 899 | { |
no test coverage detected