Linux Audio

Check our new training course

Embedded Linux Audio

Check our new training course
with Creative Commons CC-BY-SA
lecture materials

Bootlin logo

Elixir Cross Referencer

 * Copyright (c) 2016 Cadence Design Systems, Inc.
 * SPDX-License-Identifier: Apache-2.0

#include <kernel.h>
#include <irq_offload.h>
#include <arch/xtensa/arch.h>
#include <xtensa_api.h>

 * Xtensa core should support software interrupt in order to allow using
 * irq_offload feature

static irq_offload_routine_t offload_routine;
static void *offload_param;

/* Called by ISR dispatcher */
void _irq_do_offload(void *unused)

void irq_offload(irq_offload_routine_t routine, void *parameter)
		_irq_do_offload, NULL, 0);
	offload_routine = routine;
	offload_param = parameter;
	_xt_set_intset(1 << CONFIG_IRQ_OFFLOAD_INTNUM);
	 * Enable the software interrupt, in case it is disabled, so that IRQ
	 * offload is serviced.