Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198792
b: refs/heads/master
c: ea4078c
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Garrett authored and Linus Torvalds committed May 27, 2010
1 parent 7afff66 commit fe72eca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: 754d453185275951d39792865927ec494fa1ebd8
refs/heads/master: ea4078ca1a7a3a198e519c2a7a2ed6126e40b130
12 changes: 10 additions & 2 deletions trunk/drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ static inline void disable_si_irq(struct smi_info *smi_info)
if ((smi_info->irq) && (!smi_info->interrupt_disabled)) {
start_disable_irq(smi_info);
smi_info->interrupt_disabled = 1;
if (!atomic_read(&smi_info->stop_operation))
mod_timer(&smi_info->si_timer,
jiffies + SI_TIMEOUT_JIFFIES);
}
}

Expand Down Expand Up @@ -706,6 +709,8 @@ static void handle_transaction_done(struct smi_info *smi_info)
printk(KERN_WARNING
"ipmi_si: Could not enable interrupts"
", failed set, using polled mode.\n");
} else {
smi_info->interrupt_disabled = 0;
}
smi_info->si_state = SI_NORMAL;
break;
Expand Down Expand Up @@ -886,6 +891,8 @@ static void sender(void *send_info,
printk("**Enqueue: %d.%9.9d\n", t.tv_sec, t.tv_usec);
#endif

mod_timer(&smi_info->si_timer, jiffies + SI_TIMEOUT_JIFFIES);

if (smi_info->run_to_completion) {
/*
* If we are running to completion, then throw it in
Expand Down Expand Up @@ -1086,7 +1093,8 @@ static void smi_timeout(unsigned long data)
}

do_add_timer:
add_timer(&(smi_info->si_timer));
if ((smi_result != SI_SM_IDLE) || smi_info->interrupt_disabled)
add_timer(&(smi_info->si_timer));
}

static irqreturn_t si_irq_handler(int irq, void *data)
Expand Down Expand Up @@ -3117,7 +3125,7 @@ static int try_smi_init(struct smi_info *new_smi)
for (i = 0; i < SI_NUM_STATS; i++)
atomic_set(&new_smi->stats[i], 0);

new_smi->interrupt_disabled = 0;
new_smi->interrupt_disabled = 1;
atomic_set(&new_smi->stop_operation, 0);
new_smi->intf_num = smi_num;
smi_num++;
Expand Down

0 comments on commit fe72eca

Please sign in to comment.