kernel: add arch abstraction for irq_offload()

This makes it clearer that this is an API that is expected
to be implemented at the architecture level.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-09-30 15:58:11 -07:00 committed by Ioannis Glaropoulos
commit 89d4c6928e
11 changed files with 16 additions and 11 deletions

View file

@ -17,6 +17,8 @@ extern "C" {
typedef void (*irq_offload_routine_t)(void *parameter);
void z_arch_irq_offload(irq_offload_routine_t routine, void *parameter);
/**
* @brief Run a function in interrupt context
*
@ -29,7 +31,10 @@ typedef void (*irq_offload_routine_t)(void *parameter);
* @param parameter Argument to pass to the function when it is run as an
* interrupt
*/
void irq_offload(irq_offload_routine_t routine, void *parameter);
static inline void irq_offload(irq_offload_routine_t routine, void *parameter)
{
z_arch_irq_offload(routine, parameter);
}
#ifdef __cplusplus
}