Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2528
b: refs/heads/master
c: b77d6ad
h: refs/heads/master
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Jun 22, 2005
1 parent b573f69 commit 6510436
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: faec1e99ba9ca7371d9aee1656938373133c4b21
refs/heads/master: b77d6adc922b8bbf8b16b67f567958c42962cf88
5 changes: 5 additions & 0 deletions trunk/arch/um/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ config GENERIC_CALIBRATE_DELAY
bool
default y

# Used in kernel/irq/manage.c and include/linux/irq.h
config IRQ_RELEASE_METHOD
bool
default y

menu "UML-specific options"

config MODE_TT
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ struct hw_interrupt_type {
void (*ack)(unsigned int irq);
void (*end)(unsigned int irq);
void (*set_affinity)(unsigned int irq, cpumask_t dest);
/* Currently used only by UML, might disappear one day.*/
#ifdef CONFIG_IRQ_RELEASE_METHOD
void (*release)(unsigned int irq, void *dev_id);
#endif
};

typedef struct hw_interrupt_type hw_irq_controller;
Expand Down
4 changes: 4 additions & 0 deletions trunk/kernel/irq/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* This file contains driver APIs to the irq subsystem.
*/

#include <linux/config.h>
#include <linux/irq.h>
#include <linux/module.h>
#include <linux/random.h>
Expand Down Expand Up @@ -256,8 +257,11 @@ void free_irq(unsigned int irq, void *dev_id)
/* Found it - now remove it from the list of entries */
*pp = action->next;

/* Currently used only by UML, might disappear one day.*/
#ifdef CONFIG_IRQ_RELEASE_METHOD
if (desc->handler->release)
desc->handler->release(irq, dev_id);
#endif

if (!desc->action) {
desc->status |= IRQ_DISABLED;
Expand Down

0 comments on commit 6510436

Please sign in to comment.