diff --git a/drivers/note/Kconfig b/drivers/note/Kconfig index 0644402f08..646f9195d0 100644 --- a/drivers/note/Kconfig +++ b/drivers/note/Kconfig @@ -34,10 +34,10 @@ config DRIVER_NOTERAM buffer. NOTE: This option is not available if critical sections are being - monitor (nor if spinlocks are being monitored in SMP configuration) + monitored (nor if spinlocks are being monitored in SMP configuration) because there would be a logical error in the design in those cases. That error is that these interfaces call enter_ and leave_critical_section - (and which us spinlocks in SMP mode). That means that each call to + (which use spinlocks in SMP mode). That means that each call to sched_note_get() causes several additional entries to be added from the note buffer in order to remove one entry. diff --git a/drivers/note/notectl_driver.c b/drivers/note/notectl_driver.c index 05ed3babf6..35157c32d0 100644 --- a/drivers/note/notectl_driver.c +++ b/drivers/note/notectl_driver.c @@ -231,7 +231,7 @@ static int notectl_ioctl(struct file *filep, int cmd, unsigned long arg) * None. * * Returned Value: - * Zero on succress. A negated errno value is returned on a failure. + * Zero on success. A negated errno value is returned on a failure. * ****************************************************************************/ diff --git a/sched/Kconfig b/sched/Kconfig index 6209e8c178..e01fa4c950 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -949,7 +949,7 @@ config SCHED_INSTRUMENTATION void sched_note_cpu_resume(FAR struct tcb_s *tcb, int cpu); void sched_note_cpu_resumed(FAR struct tcb_s *tcb); - NOTE: These are internal OS interfaces and are called at at very + NOTE: These are internal OS interfaces and are called at very critical locations in the OS. There is very little that can be done in these interfaces. For example, normal devices may not be used; syslog output cannot be performed. @@ -965,7 +965,7 @@ config SCHED_INSTRUMENTATION_EXTERNAL SCHED_INSTRUMENTATION_SPINLOCKS, SCHED_INSTRUMENTATION_SYSCALL and SCHED_INSTRUMENTATION_IRQHANDLER. Otherwise the common code will implement these callbacks and packet the arguments into note_ struct. Then the board - -specific logic just need to implement one callback: + -specific logic just needs to implement one callback: void sched_note_add(FAR const void *note, size_t notelen);