Release 4.7 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();
	return IRQ_HANDLED;
}
Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| christian borntraeger | christian borntraeger | 27 | 100.00% | 1 | 100.00% | 
 | Total | 27 | 100.00% | 1 | 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, 0,
			   "hvc_console", hp);
	if (!rc)
		hp->irq_requested = 1;
	return rc;
}
Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| christian borntraeger | christian borntraeger | 60 | 98.36% | 1 | 50.00% | 
| yong zhang | yong zhang | 1 | 1.64% | 1 | 50.00% | 
 | Total | 61 | 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 borntraeger | christian borntraeger | 31 | 91.18% | 1 | 50.00% | 
| milton d. miller | milton d. miller | 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 | hendrik brueckner | 20 | 100.00% | 1 | 100.00% | 
 | Total | 20 | 100.00% | 1 | 100.00% | 
Overall Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| christian borntraeger | christian borntraeger | 126 | 84.00% | 1 | 25.00% | 
| hendrik brueckner | hendrik brueckner | 20 | 13.33% | 1 | 25.00% | 
| milton d. miller | milton d. miller | 3 | 2.00% | 1 | 25.00% | 
| yong zhang | yong zhang | 1 | 0.67% | 1 | 25.00% | 
 | Total | 150 | 100.00% | 4 | 100.00% | 
  
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.