Release 4.11 drivers/tty/hvc/hvc_irq.c
/*
* Copyright IBM Corp. 2001,2008
*
* This file contains the IRQ specific code for hvc_console
*
*/
#include <linux/interrupt.h>
#include "hvc_console.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))
hvc_kick();
/*
* We're safe to always return IRQ_HANDLED as the hvcd thread will
* iterate through each hvc_struct.
*/
return IRQ_HANDLED;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Christian Bornträger | 27 | 96.43% | 1 | 50.00% |
Sam Mendoza-Jonas | 1 | 3.57% | 1 | 50.00% |
Total | 28 | 100.00% | 2 | 100.00% |
/*
* For IRQ based systems these callbacks can be used
*/
int notifier_add_irq(struct hvc_struct *hp, int irq)
{
int rc;
if (!irq) {
hp->irq_requested = 0;
return 0;
}
rc = request_irq(irq, hvc_handle_interrupt, hp->flags,
"hvc_console", hp);
if (!rc)
hp->irq_requested = 1;
return rc;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Christian Bornträger | 60 | 95.24% | 1 | 50.00% |
Sam Mendoza-Jonas | 3 | 4.76% | 1 | 50.00% |
Total | 63 | 100.00% | 2 | 100.00% |
void notifier_del_irq(struct hvc_struct *hp, int irq)
{
if (!hp->irq_requested)
return;
free_irq(irq, hp);
hp->irq_requested = 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Christian Bornträger | 31 | 91.18% | 1 | 50.00% |
Milton D. Miller II | 3 | 8.82% | 1 | 50.00% |
Total | 34 | 100.00% | 2 | 100.00% |
void notifier_hangup_irq(struct hvc_struct *hp, int irq)
{
notifier_del_irq(hp, irq);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Hendrik Brueckner | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Christian Bornträger | 126 | 82.35% | 1 | 25.00% |
Hendrik Brueckner | 20 | 13.07% | 1 | 25.00% |
Sam Mendoza-Jonas | 4 | 2.61% | 1 | 25.00% |
Milton D. Miller II | 3 | 1.96% | 1 | 25.00% |
Total | 153 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.