Revert "global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT()"
This reverts commit 8739517107
.
Pull Request #23437 was merged by mistake with an invalid manifest.
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
4810906030
commit
4b37a8f3a4
52 changed files with 207 additions and 206 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <spinlock.h>
|
||||
#include <drivers/interrupt_controller/loapic.h>
|
||||
|
||||
BUILD_ASSERT(!IS_ENABLED(CONFIG_SMP), "APIC timer doesn't support SMP");
|
||||
BUILD_ASSERT_MSG(!IS_ENABLED(CONFIG_SMP), "APIC timer doesn't support SMP");
|
||||
|
||||
/*
|
||||
* Overview:
|
||||
|
@ -55,7 +55,7 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_SMP), "APIC timer doesn't support SMP");
|
|||
#define CYCLES_PER_TICK \
|
||||
(CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC / CONFIG_SYS_CLOCK_TICKS_PER_SEC)
|
||||
|
||||
BUILD_ASSERT(CYCLES_PER_TICK >= 2, "APIC timer: bad CYCLES_PER_TICK");
|
||||
BUILD_ASSERT_MSG(CYCLES_PER_TICK >= 2, "APIC timer: bad CYCLES_PER_TICK");
|
||||
|
||||
/* max number of ticks we can load into the timer in one shot */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue