Skip to content

Commit

Permalink
kernel: move z_init_cpu to private kernel headers
Browse files Browse the repository at this point in the history
z_init_cpu() is a private kernel API so move it under
kernel/include.

Signed-off-by: Daniel Leung <[email protected]>
  • Loading branch information
dcpleung authored and nashif committed Jan 17, 2024
1 parent 35a1814 commit 2cdd448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/zephyr/kernel/internal/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#ifndef ZEPHYR_INCLUDE_KERNEL_INTERNAL_SMP_H_
#define ZEPHYR_INCLUDE_KERNEL_INTERNAL_SMP_H_

void z_init_cpu(int id);
void z_sched_ipi(void);

#endif
3 changes: 3 additions & 0 deletions kernel/include/kernel_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
extern "C" {
#endif

/* Initialize per-CPU kernel data */
void z_init_cpu(int id);

/* Initialize a thread */
void z_init_thread_base(struct _thread_base *thread_base, int priority,
uint32_t initial_state, unsigned int options);
Expand Down

0 comments on commit 2cdd448

Please sign in to comment.