commit | 602c99379939af804906621ba97e7ea944310139 | [log] [tgz] |
---|---|---|
author | Yong Cong Sin <ycsin@meta.com> | Sun May 26 16:00:05 2024 +0800 |
committer | Henrik Brix Andersen <henrik@brixandersen.dk> | Wed May 29 08:38:53 2024 +0200 |
tree | c1b0774e419c3a98638d1913fb8729cf2098c968 | |
parent | 25138ff99c2a9f5958344a88f6cb146ec02cf85f [diff] |
arch: riscv: stacktrace: fix cpuid type and optimize branch with compiler Change the type of `cpu_id` to `uint8_t` since that is the type of `arch_curr_cpu()->id`. Instead of using precompiler switch (`#ifdef CONFIG_SMP`), use if-else shorthand instead (`IS_ENABLED(CONFIG_SMP)`). Signed-off-by: Yong Cong Sin <ycsin@meta.com>