Commit 00e94614 authored by Joshua Lilly's avatar Joshua Lilly Committed by Josh Lilly
Browse files

irq.h: build assert removal from irq.h



This diff removes a build assert that no longer makes
sense due to the fact the MAX_IRQ_PER_AGGREGATOR number
does not need to fit into only the first level interrupt
bits. Before the extension of the interrupt bit masks if
the MAX_IRQ_PER_AGGREGATOR bits was larger than the first
level of interrupts then the first level bits could overflow
into the second level. This is no longer necessary to check
since the user can set the correct number of bits needed per
level.

Signed-off-by: default avatarJoshua Lilly <jgl@meta.com>
parent f4e01716
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@

/* Pull in the arch-specific implementations */
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/util.h>

#ifndef _ASMLANGUAGE
#include <zephyr/toolchain.h>
@@ -23,11 +22,6 @@
extern "C" {
#endif

#if defined(CONFIG_MULTI_LEVEL_INTERRUPTS) && CONFIG_MAX_IRQ_PER_AGGREGATOR > 0
BUILD_ASSERT((LOG2(CONFIG_MAX_IRQ_PER_AGGREGATOR) + 1) <= CONFIG_1ST_LEVEL_INTERRUPT_BITS,
	"CONFIG_MAX_IRQ_PER_AGGREGATOR is too large");
#endif

/**
 * @defgroup isr_apis Interrupt Service Routine APIs
 * @ingroup kernel_apis