Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63558
b: refs/heads/master
c: c4c376f
h: refs/heads/master
v: v3
  • Loading branch information
Kenji Kaneshige authored and Tony Luck committed Jul 30, 2007
1 parent fd146a5 commit 903171e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b30859b8d42b3161954a81da7f96055a4617220
refs/heads/master: c4c376f7e16deeba8f0542eabcaca19b712e7be1
12 changes: 6 additions & 6 deletions trunk/arch/ia64/kernel/iosapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ struct iosapic_rte_info {
static struct iosapic_intr_info {
struct list_head rtes; /* RTEs using this vector (empty =>
* not an IOSAPIC interrupt) */
int count; /* # of RTEs that shares this vector */
int count; /* # of registered RTEs */
u32 low32; /* current value of low word of
* Redirection table entry */
unsigned int dest; /* destination CPU physical ID */
Expand Down Expand Up @@ -313,7 +313,7 @@ mask_irq (unsigned int irq)
int rte_index;
struct iosapic_rte_info *rte;

if (list_empty(&iosapic_intr_info[irq].rtes))
if (!iosapic_intr_info[irq].count)
return; /* not an IOSAPIC interrupt! */

/* set only the mask bit */
Expand All @@ -331,7 +331,7 @@ unmask_irq (unsigned int irq)
int rte_index;
struct iosapic_rte_info *rte;

if (list_empty(&iosapic_intr_info[irq].rtes))
if (!iosapic_intr_info[irq].count)
return; /* not an IOSAPIC interrupt! */

low32 = iosapic_intr_info[irq].low32 &= ~IOSAPIC_MASK;
Expand Down Expand Up @@ -363,7 +363,7 @@ iosapic_set_affinity (unsigned int irq, cpumask_t mask)

dest = cpu_physical_id(first_cpu(mask));

if (list_empty(&iosapic_intr_info[irq].rtes))
if (!iosapic_intr_info[irq].count)
return; /* not an IOSAPIC interrupt */

set_irq_affinity_info(irq, dest, redir);
Expand Down Expand Up @@ -542,7 +542,7 @@ iosapic_reassign_vector (int irq)
{
int new_irq;

if (!list_empty(&iosapic_intr_info[irq].rtes)) {
if (iosapic_intr_info[irq].count) {
new_irq = create_irq();
if (new_irq < 0)
panic("%s: out of interrupt vectors!\n", __FUNCTION__);
Expand Down Expand Up @@ -677,7 +677,7 @@ get_target_cpu (unsigned int gsi, int irq)
* In case of vector shared by multiple RTEs, all RTEs that
* share the vector need to use the same destination CPU.
*/
if (!list_empty(&iosapic_intr_info[irq].rtes))
if (iosapic_intr_info[irq].count)
return iosapic_intr_info[irq].dest;

/*
Expand Down

0 comments on commit 903171e

Please sign in to comment.