Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38420
b: refs/heads/master
c: b6cf258
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Oct 4, 2006
1 parent 7dd471f commit 74ee7db
Show file tree
Hide file tree
Showing 2 changed files with 21 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: 3a16d713626735f3016da0521b7bf251cd78e836
refs/heads/master: b6cf2583ba026ca563ff8b15805fcf30b8e192a7
20 changes: 20 additions & 0 deletions trunk/arch/ia64/kernel/irq_ia64.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/smp_lock.h>
#include <linux/threads.h>
#include <linux/bitops.h>
#include <linux/irq.h>

#include <asm/delay.h>
#include <asm/intrinsics.h>
Expand Down Expand Up @@ -105,6 +106,25 @@ reserve_irq_vector (int vector)
return test_and_set_bit(pos, ia64_vector_mask);
}

/*
* Dynamic irq allocate and deallocation for MSI
*/
int create_irq(void)
{
int vector = assign_irq_vector(AUTO_ASSIGN);

if (vector >= 0)
dynamic_irq_init(vector);

return vector;
}

void destroy_irq(unsigned int irq)
{
dynamic_irq_cleanup(irq);
free_irq_vector(irq);
}

#ifdef CONFIG_SMP
# define IS_RESCHEDULE(vec) (vec == IA64_IPI_RESCHEDULE)
#else
Expand Down

0 comments on commit 74ee7db

Please sign in to comment.