Commit 70e31133 authored by Alex Williamson's avatar Alex Williamson Committed by David Mosberger

[PATCH] ia64: Update to CMC/CPE polling

 Based on the feedback from Tony, here's the patch that flips
around the clearing of cmc_polling_enabled.
parent 9072b37e
...@@ -1149,13 +1149,19 @@ ia64_mca_cmc_int_caller(int cpe_irq, void *arg, struct pt_regs *ptregs) ...@@ -1149,13 +1149,19 @@ ia64_mca_cmc_int_caller(int cpe_irq, void *arg, struct pt_regs *ptregs)
printk(KERN_WARNING "%s: Returning to interrupt driven CMC handler\n", __FUNCTION__); printk(KERN_WARNING "%s: Returning to interrupt driven CMC handler\n", __FUNCTION__);
cmc_polling_enabled = 0;
/* /*
* The cmc interrupt handler enabled irqs, so * The cmc interrupt handler enabled irqs, so
* this can't deadlock. * this can't deadlock.
*/ */
smp_call_function(ia64_mca_cmc_vector_enable, NULL, 1, 0); smp_call_function(ia64_mca_cmc_vector_enable, NULL, 1, 0);
/*
* Turn off interrupts before re-enabling the
* cmc vector locally. Make sure we get out.
*/
local_irq_disable();
ia64_mca_cmc_vector_enable(NULL); ia64_mca_cmc_vector_enable(NULL);
cmc_polling_enabled = 0;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment