| // SPDX-License-Identifier: GPL-2.0 |
| * Copyright IBM Corp. 2001,2008 |
| * This file contains the IRQ specific code for hvc_console |
| #include <linux/interrupt.h> |
| static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance) |
| /* if hvc_poll request a repoll, then kick the hvcd thread */ |
| if (hvc_poll(dev_instance)) |
| * We're safe to always return IRQ_HANDLED as the hvcd thread will |
| * iterate through each hvc_struct. |
| * For IRQ based systems these callbacks can be used |
| int notifier_add_irq(struct hvc_struct *hp, int irq) |
| rc = request_irq(irq, hvc_handle_interrupt, hp->flags, |
| void notifier_del_irq(struct hvc_struct *hp, int irq) |
| void notifier_hangup_irq(struct hvc_struct *hp, int irq) |
| notifier_del_irq(hp, irq); |