zephyr/arch/arc/include/arc_irq_offload.h
Anas Nashif 7e225efab7 arch: initialize irq_offload during boot, do not use SYS_INIT
Do not use SYS_INIT for initializing irq_offload when enabled, instead
using a new interface that is called during the boot process for all
architectures.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-09-17 20:05:22 -04:00

24 lines
443 B
C

/*
* Copyright (c) 2022 Synopsys.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_ARC_IRQ_OFFLOAD_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_ARC_IRQ_OFFLOAD_H_
#ifdef CONFIG_IRQ_OFFLOAD
static inline void arc_irq_offload_init_smp(void)
{
arch_irq_offload_init();
}
#else
static inline void arc_irq_offload_init_smp(void) {}
#endif /* CONFIG_IRQ_OFFLOAD */
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_ARC_IRQ_OFFLOAD_H_ */