Commit 0d18407
committed
kernel/smp: add a Kconfig to disable validation of
The assert validation was added in eefd3da to ensure that
`_current_cpu` is used safely. However, since `_current_cpu`
is used frequently in the kernel/scheduler, especially when
SMP is enabled, the assertion has a negative impact on the
performance.
This commit introduces a Kconfig to disable just the assert
validation of the `_current_cpu`, without having to disable
`CONFIG_ASSERT` entirely.
Signed-off-by: Yong Cong Sin <[email protected]>_current_cpu
1 parent c3466b1 commit 0d18407
2 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
129 | 137 | | |
0 commit comments