genirq/irq_sim: Add a simple interrupt simulator framework
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 14 Aug 2017 14:53:16 +0000 (16:53 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 16 Aug 2017 14:40:02 +0000 (16:40 +0200)
commitb19af510e67e6ca696b8721f45c148119437307c
tree11cdc519ec17a7696b3c8ee0f37351fde8dec6c3
parentef954844c7ace62f773f4f23e28d2d915adc419f
genirq/irq_sim: Add a simple interrupt simulator framework

Implement a simple, irq_work-based framework for simulating
interrupts. Currently the API exposes routines for initializing and
deinitializing the simulator object, enqueueing the interrupts and
retrieving the allocated interrupt numbers based on the offset of the
dummy interrupt in the simulator struct.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-doc@vger.kernel.org
Cc: linux-gpio@vger.kernel.org
Cc: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Cc: Jonathan Cameron <jic23@kernel.org>
Link: http://lkml.kernel.org/r/20170814145318.6495-2-brgl@bgdev.pl
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irq_sim.h [new file with mode: 0644]
kernel/irq/Kconfig
kernel/irq/Makefile
kernel/irq/irq_sim.c [new file with mode: 0644]