Skip to content

Commit f53d5d5

Browse files
nashifcarlescufi
authored andcommitted
arch: move custom arch call Kconfigs
Move from kernel/ to arch/ and have all those Kconfigs in one place. Signed-off-by: Anas Nashif <[email protected]>
1 parent a91c6e5 commit f53d5d5

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

arch/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,3 +1089,17 @@ config ARCH_HAS_CUSTOM_CPU_ATOMIC_IDLE
10891089
help
10901090
This options allows applications to override the default arch idle implementation with
10911091
a custom one.
1092+
1093+
config ARCH_HAS_CUSTOM_SWAP_TO_MAIN
1094+
bool
1095+
help
1096+
It's possible that an architecture port cannot use _Swap() to swap to
1097+
the _main() thread, but instead must do something custom. It must
1098+
enable this option in that case.
1099+
1100+
config ARCH_HAS_CUSTOM_BUSY_WAIT
1101+
bool
1102+
help
1103+
It's possible that an architecture port cannot or does not want to use
1104+
the provided k_busy_wait(), but instead must do something custom. It must
1105+
enable this option in that case.

kernel/Kconfig

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -752,13 +752,6 @@ endif # KERNEL_MEM_POOL
752752

753753
endmenu
754754

755-
config ARCH_HAS_CUSTOM_SWAP_TO_MAIN
756-
bool
757-
help
758-
It's possible that an architecture port cannot use _Swap() to swap to
759-
the _main() thread, but instead must do something custom. It must
760-
enable this option in that case.
761-
762755
config SWAP_NONATOMIC
763756
bool
764757
help
@@ -771,13 +764,6 @@ config SWAP_NONATOMIC
771764
ARM when the PendSV exception priority sits below that of
772765
Zephyr-handled interrupts.
773766

774-
config ARCH_HAS_CUSTOM_BUSY_WAIT
775-
bool
776-
help
777-
It's possible that an architecture port cannot or does not want to use
778-
the provided k_busy_wait(), but instead must do something custom. It must
779-
enable this option in that case.
780-
781767
config SYS_CLOCK_TICKS_PER_SEC
782768
int "System tick frequency (in ticks/second)"
783769
default 100 if QEMU_TARGET || SOC_POSIX

0 commit comments

Comments
 (0)