From 8188be57d33a81041aa014e75a1c492a5327d093 Mon Sep 17 00:00:00 2001 From: Nguyen Minh Thien Date: Mon, 19 Feb 2024 13:16:58 +0100 Subject: [PATCH] kernel: fix spelling errors Fix spelling errors found in comment of the kernel source code. Signed-off-by: Nguyen Minh Thien --- kernel/idle.c | 2 +- kernel/include/kernel_arch_interface.h | 2 +- kernel/include/ksched.h | 4 ++-- kernel/mailbox.c | 2 +- kernel/mutex.c | 2 +- kernel/userspace.c | 2 +- kernel/work.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/kernel/idle.c b/kernel/idle.c index 290b45976d9..ae39f710b07 100644 --- a/kernel/idle.c +++ b/kernel/idle.c @@ -75,7 +75,7 @@ void idle(void *unused1, void *unused2, void *unused3) * * This function is entered with interrupts disabled. * If a low power state was entered, then the hook - * function should enable inerrupts before exiting. + * function should enable interrupts before exiting. * This is because the kernel does not do its own idle * processing in those cases i.e. skips k_cpu_idle(). * The kernel's idle processing re-enables interrupts diff --git a/kernel/include/kernel_arch_interface.h b/kernel/include/kernel_arch_interface.h index 5d11521ab8b..73884463520 100644 --- a/kernel/include/kernel_arch_interface.h +++ b/kernel/include/kernel_arch_interface.h @@ -192,7 +192,7 @@ int arch_float_disable(struct k_thread *thread); * * The function is used to enable the preservation of floating * point context information for a particular thread. - * This API depends on each architecture implimentation. If the architecture + * This API depends on each architecture implementation. If the architecture * does not support enabling, this API will always be failed. * * The @a options parameter indicates which floating point register sets will diff --git a/kernel/include/ksched.h b/kernel/include/ksched.h index a6898a8bdf4..be45059a835 100644 --- a/kernel/include/ksched.h +++ b/kernel/include/ksched.h @@ -375,8 +375,8 @@ int z_sched_wait(struct k_spinlock *lock, k_spinlock_key_t key, * waiting thread while holding sched_spinlock. This can be useful for routines * that need to operate on multiple waiting threads. * - * CAUTION! As a wait queue is of indeterminant length, the scheduler will be - * locked for an indeterminant amount of time. This may impact system + * CAUTION! As a wait queue is of indeterminate length, the scheduler will be + * locked for an indeterminate amount of time. This may impact system * performance. As such, care must be taken when using both this function and * the specified callback. * diff --git a/kernel/mailbox.c b/kernel/mailbox.c index 2d7d28da03a..8e796a4a31b 100644 --- a/kernel/mailbox.c +++ b/kernel/mailbox.c @@ -452,7 +452,7 @@ static int init_mailbox_obj_core_list(void) z_obj_type_init(&obj_type_mailbox, K_OBJ_TYPE_MBOX_ID, offsetof(struct k_mbox, obj_core)); - /* Initialize and link satically defined mailboxes */ + /* Initialize and link statically defined mailboxes */ STRUCT_SECTION_FOREACH(k_mbox, mbox) { k_obj_core_init_and_link(K_OBJ_CORE(mbox), &obj_type_mailbox); diff --git a/kernel/mutex.c b/kernel/mutex.c index 622422aef7b..c652fd85b19 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c @@ -301,7 +301,7 @@ static int init_mutex_obj_core_list(void) z_obj_type_init(&obj_type_mutex, K_OBJ_TYPE_MUTEX_ID, offsetof(struct k_mutex, obj_core)); - /* Initialize and link statically defined mutexs */ + /* Initialize and link statically defined mutexes */ STRUCT_SECTION_FOREACH(k_mutex, mutex) { k_obj_core_init_and_link(K_OBJ_CORE(mutex), &obj_type_mutex); diff --git a/kernel/userspace.c b/kernel/userspace.c index a3e6df69120..1eaf1a0e306 100644 --- a/kernel/userspace.c +++ b/kernel/userspace.c @@ -551,7 +551,7 @@ static void unref_check(struct k_object *ko, uintptr_t index) /* This object has no more references. Some objects may have * dynamically allocated resources, require cleanup, or need to be - * marked as uninitailized when all references are gone. What + * marked as uninitialized when all references are gone. What * specifically needs to happen depends on the object type. */ switch (ko->type) { diff --git a/kernel/work.c b/kernel/work.c index a56aa67829c..11498c186d2 100644 --- a/kernel/work.c +++ b/kernel/work.c @@ -92,7 +92,7 @@ static inline void init_work_cancel(struct z_work_canceller *canceler, sys_slist_append(&pending_cancels, &canceler->node); } -/* Comeplete flushing of a work item. +/* Complete flushing of a work item. * * Invoked with work lock held. *