x86: x86_64: ARCH_HAS_STACKWALK possible with optimization

Stack walking on x86_64 can run with compiler optimization and
does not need CONFIG_NO_OPTIMIZATIONS as long as frame pointers
are not omitted. So remove the "depends on" for x86_64
from CONFIG_ARCH_HAS_STACKWALK.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2025-05-08 14:18:42 -07:00 committed by Benjamin Cabé
commit ec6a6eb04d

View file

@ -35,7 +35,6 @@ config ARCH_HAS_STACKWALK
select DEBUG_INFO
select THREAD_STACK_INFO
depends on !OMIT_FRAME_POINTER
depends on NO_OPTIMIZATIONS
help
Internal config to indicate that the arch_stack_walk() API is implemented
and it can be enabled.