Skip to content

Commit

Permalink
irq.h: build assert removal from irq.h
Browse files Browse the repository at this point in the history
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: Joshua Lilly <jgl@meta.com>
  • Loading branch information
jgl-meta committed Aug 14, 2023
1 parent f4e0171 commit 00e9461
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/zephyr/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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
Expand Down

0 comments on commit 00e9461

Please sign in to comment.