Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/kernel/irq/spurious.c |
| 3 | * |
| 4 | * Copyright (C) 1992, 1998-2004 Linus Torvalds, Ingo Molnar |
| 5 | * |
| 6 | * This file contains spurious interrupt handling. |
| 7 | */ |
| 8 | |
S.Caglar Onur | 188fd89 | 2008-02-14 17:36:51 +0200 | [diff] [blame] | 9 | #include <linux/jiffies.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #include <linux/irq.h> |
| 11 | #include <linux/module.h> |
| 12 | #include <linux/kallsyms.h> |
| 13 | #include <linux/interrupt.h> |
Andi Kleen | 9e094c1 | 2008-01-30 13:32:48 +0100 | [diff] [blame] | 14 | #include <linux/moduleparam.h> |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 15 | #include <linux/timer.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
Thomas Gleixner | bd15141 | 2010-10-01 15:17:14 +0200 | [diff] [blame] | 17 | #include "internals.h" |
| 18 | |
Andreas Mohr | 83d4e6e | 2006-06-23 02:05:32 -0700 | [diff] [blame] | 19 | static int irqfixup __read_mostly; |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 20 | |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 21 | #define POLL_SPURIOUS_IRQ_INTERVAL (HZ/10) |
| 22 | static void poll_spurious_irqs(unsigned long dummy); |
| 23 | static DEFINE_TIMER(poll_spurious_irq_timer, poll_spurious_irqs, 0, 0); |
Thomas Gleixner | d05c65f | 2011-02-07 14:31:37 +0100 | [diff] [blame^] | 24 | static int irq_poll_cpu; |
| 25 | static atomic_t irq_poll_active; |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 26 | |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 27 | /* |
| 28 | * Recovery handler for misrouted interrupts. |
| 29 | */ |
Thomas Gleixner | c7259cd | 2011-02-07 09:52:27 +0100 | [diff] [blame] | 30 | static int try_one_irq(int irq, struct irq_desc *desc, bool force) |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 31 | { |
| 32 | struct irqaction *action; |
Thomas Gleixner | d3c6004 | 2008-10-16 09:55:00 +0200 | [diff] [blame] | 33 | int ok = 0, work = 0; |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 34 | |
Thomas Gleixner | 239007b | 2009-11-17 16:46:45 +0100 | [diff] [blame] | 35 | raw_spin_lock(&desc->lock); |
Thomas Gleixner | c7259cd | 2011-02-07 09:52:27 +0100 | [diff] [blame] | 36 | |
| 37 | /* PER_CPU and nested thread interrupts are never polled */ |
| 38 | if (desc->status & (IRQ_PER_CPU | IRQ_NESTED_THREAD)) |
| 39 | goto out; |
| 40 | |
| 41 | /* |
| 42 | * Do not poll disabled interrupts unless the spurious |
| 43 | * disabled poller asks explicitely. |
| 44 | */ |
| 45 | if ((desc->status & IRQ_DISABLED) && !force) |
| 46 | goto out; |
| 47 | |
| 48 | /* |
| 49 | * All handlers must agree on IRQF_SHARED, so we test just the |
| 50 | * first. Check for action->next as well. |
| 51 | */ |
| 52 | action = desc->action; |
| 53 | if (!action || !(action->flags & IRQF_SHARED) || |
| 54 | (action->flags & __IRQF_TIMER) || !action->next) |
| 55 | goto out; |
| 56 | |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 57 | /* Already running on another processor */ |
| 58 | if (desc->status & IRQ_INPROGRESS) { |
| 59 | /* |
| 60 | * Already running: If it is shared get the other |
| 61 | * CPU to go looking for our mystery interrupt too |
| 62 | */ |
Thomas Gleixner | c7259cd | 2011-02-07 09:52:27 +0100 | [diff] [blame] | 63 | desc->status |= IRQ_PENDING; |
Thomas Gleixner | fa27271 | 2011-02-07 09:10:39 +0100 | [diff] [blame] | 64 | goto out; |
Thomas Gleixner | c7259cd | 2011-02-07 09:52:27 +0100 | [diff] [blame] | 65 | } |
Thomas Gleixner | fa27271 | 2011-02-07 09:10:39 +0100 | [diff] [blame] | 66 | |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 67 | /* Honour the normal IRQ locking */ |
| 68 | desc->status |= IRQ_INPROGRESS; |
Thomas Gleixner | fa27271 | 2011-02-07 09:10:39 +0100 | [diff] [blame] | 69 | do { |
| 70 | work++; |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 71 | desc->status &= ~IRQ_PENDING; |
Thomas Gleixner | fa27271 | 2011-02-07 09:10:39 +0100 | [diff] [blame] | 72 | raw_spin_unlock(&desc->lock); |
| 73 | if (handle_IRQ_event(irq, action) != IRQ_NONE) |
| 74 | ok = 1; |
| 75 | raw_spin_lock(&desc->lock); |
| 76 | action = desc->action; |
| 77 | } while ((desc->status & IRQ_PENDING) && action); |
| 78 | |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 79 | desc->status &= ~IRQ_INPROGRESS; |
| 80 | /* |
| 81 | * If we did actual work for the real IRQ line we must let the |
| 82 | * IRQ controller clean up too |
| 83 | */ |
Thomas Gleixner | fa27271 | 2011-02-07 09:10:39 +0100 | [diff] [blame] | 84 | if (work > 1) |
Thomas Gleixner | bd15141 | 2010-10-01 15:17:14 +0200 | [diff] [blame] | 85 | irq_end(irq, desc); |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 86 | |
Thomas Gleixner | fa27271 | 2011-02-07 09:10:39 +0100 | [diff] [blame] | 87 | out: |
| 88 | raw_spin_unlock(&desc->lock); |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 89 | return ok; |
| 90 | } |
| 91 | |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 92 | static int misrouted_irq(int irq) |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 93 | { |
Yinghai Lu | e00585b | 2008-09-15 01:53:50 -0700 | [diff] [blame] | 94 | struct irq_desc *desc; |
Thomas Gleixner | d3c6004 | 2008-10-16 09:55:00 +0200 | [diff] [blame] | 95 | int i, ok = 0; |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 96 | |
Thomas Gleixner | d05c65f | 2011-02-07 14:31:37 +0100 | [diff] [blame^] | 97 | if (atomic_inc_return(&irq_poll_active) == 1) |
| 98 | goto out; |
| 99 | |
| 100 | irq_poll_cpu = smp_processor_id(); |
| 101 | |
Yinghai Lu | e00585b | 2008-09-15 01:53:50 -0700 | [diff] [blame] | 102 | for_each_irq_desc(i, desc) { |
| 103 | if (!i) |
| 104 | continue; |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 105 | |
| 106 | if (i == irq) /* Already tried */ |
| 107 | continue; |
Ingo Molnar | 06fcb0c | 2006-06-29 02:24:40 -0700 | [diff] [blame] | 108 | |
Thomas Gleixner | c7259cd | 2011-02-07 09:52:27 +0100 | [diff] [blame] | 109 | if (try_one_irq(i, desc, false)) |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 110 | ok = 1; |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 111 | } |
Thomas Gleixner | d05c65f | 2011-02-07 14:31:37 +0100 | [diff] [blame^] | 112 | out: |
| 113 | atomic_dec(&irq_poll_active); |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 114 | /* So the caller can adjust the irq error counts */ |
| 115 | return ok; |
| 116 | } |
| 117 | |
Thomas Gleixner | 663e695 | 2009-11-04 14:22:21 +0100 | [diff] [blame] | 118 | static void poll_spurious_irqs(unsigned long dummy) |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 119 | { |
Yinghai Lu | e00585b | 2008-09-15 01:53:50 -0700 | [diff] [blame] | 120 | struct irq_desc *desc; |
Thomas Gleixner | d3c6004 | 2008-10-16 09:55:00 +0200 | [diff] [blame] | 121 | int i; |
Yinghai Lu | e00585b | 2008-09-15 01:53:50 -0700 | [diff] [blame] | 122 | |
Thomas Gleixner | d05c65f | 2011-02-07 14:31:37 +0100 | [diff] [blame^] | 123 | if (atomic_inc_return(&irq_poll_active) != 1) |
| 124 | goto out; |
| 125 | irq_poll_cpu = smp_processor_id(); |
| 126 | |
Yinghai Lu | e00585b | 2008-09-15 01:53:50 -0700 | [diff] [blame] | 127 | for_each_irq_desc(i, desc) { |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 128 | unsigned int status; |
| 129 | |
Yinghai Lu | e00585b | 2008-09-15 01:53:50 -0700 | [diff] [blame] | 130 | if (!i) |
| 131 | continue; |
| 132 | |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 133 | /* Racy but it doesn't matter */ |
| 134 | status = desc->status; |
| 135 | barrier(); |
| 136 | if (!(status & IRQ_SPURIOUS_DISABLED)) |
| 137 | continue; |
| 138 | |
Yong Zhang | e7e7e0c | 2009-11-07 11:16:13 +0800 | [diff] [blame] | 139 | local_irq_disable(); |
Thomas Gleixner | c7259cd | 2011-02-07 09:52:27 +0100 | [diff] [blame] | 140 | try_one_irq(i, desc, true); |
Yong Zhang | e7e7e0c | 2009-11-07 11:16:13 +0800 | [diff] [blame] | 141 | local_irq_enable(); |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 142 | } |
Thomas Gleixner | d05c65f | 2011-02-07 14:31:37 +0100 | [diff] [blame^] | 143 | out: |
| 144 | atomic_dec(&irq_poll_active); |
Thomas Gleixner | d3c6004 | 2008-10-16 09:55:00 +0200 | [diff] [blame] | 145 | mod_timer(&poll_spurious_irq_timer, |
| 146 | jiffies + POLL_SPURIOUS_IRQ_INTERVAL); |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 147 | } |
| 148 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 149 | /* |
| 150 | * If 99,900 of the previous 100,000 interrupts have not been handled |
| 151 | * then assume that the IRQ is stuck in some manner. Drop a diagnostic |
| 152 | * and try to turn the IRQ off. |
| 153 | * |
| 154 | * (The other 100-of-100,000 interrupts may have been a correctly |
| 155 | * functioning device sharing an IRQ with the failing one) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 156 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 157 | static void |
Ingo Molnar | 34ffdb7 | 2006-06-29 02:24:40 -0700 | [diff] [blame] | 158 | __report_bad_irq(unsigned int irq, struct irq_desc *desc, |
| 159 | irqreturn_t action_ret) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 160 | { |
| 161 | struct irqaction *action; |
Thomas Gleixner | 1082687 | 2011-02-07 09:05:05 +0100 | [diff] [blame] | 162 | unsigned long flags; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 163 | |
| 164 | if (action_ret != IRQ_HANDLED && action_ret != IRQ_NONE) { |
| 165 | printk(KERN_ERR "irq event %d: bogus return value %x\n", |
| 166 | irq, action_ret); |
| 167 | } else { |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 168 | printk(KERN_ERR "irq %d: nobody cared (try booting with " |
| 169 | "the \"irqpoll\" option)\n", irq); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 170 | } |
| 171 | dump_stack(); |
| 172 | printk(KERN_ERR "handlers:\n"); |
Ingo Molnar | 06fcb0c | 2006-06-29 02:24:40 -0700 | [diff] [blame] | 173 | |
Thomas Gleixner | 1082687 | 2011-02-07 09:05:05 +0100 | [diff] [blame] | 174 | /* |
| 175 | * We need to take desc->lock here. note_interrupt() is called |
| 176 | * w/o desc->lock held, but IRQ_PROGRESS set. We might race |
| 177 | * with something else removing an action. It's ok to take |
| 178 | * desc->lock here. See synchronize_irq(). |
| 179 | */ |
| 180 | raw_spin_lock_irqsave(&desc->lock, flags); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 181 | action = desc->action; |
| 182 | while (action) { |
| 183 | printk(KERN_ERR "[<%p>]", action->handler); |
| 184 | print_symbol(" (%s)", |
| 185 | (unsigned long)action->handler); |
| 186 | printk("\n"); |
| 187 | action = action->next; |
| 188 | } |
Thomas Gleixner | 1082687 | 2011-02-07 09:05:05 +0100 | [diff] [blame] | 189 | raw_spin_unlock_irqrestore(&desc->lock, flags); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 190 | } |
| 191 | |
Ingo Molnar | 06fcb0c | 2006-06-29 02:24:40 -0700 | [diff] [blame] | 192 | static void |
Ingo Molnar | 34ffdb7 | 2006-06-29 02:24:40 -0700 | [diff] [blame] | 193 | report_bad_irq(unsigned int irq, struct irq_desc *desc, irqreturn_t action_ret) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 194 | { |
| 195 | static int count = 100; |
| 196 | |
| 197 | if (count > 0) { |
| 198 | count--; |
| 199 | __report_bad_irq(irq, desc, action_ret); |
| 200 | } |
| 201 | } |
| 202 | |
Thomas Gleixner | d3c6004 | 2008-10-16 09:55:00 +0200 | [diff] [blame] | 203 | static inline int |
| 204 | try_misrouted_irq(unsigned int irq, struct irq_desc *desc, |
| 205 | irqreturn_t action_ret) |
Linus Torvalds | 92ea772 | 2007-05-24 08:37:14 -0700 | [diff] [blame] | 206 | { |
| 207 | struct irqaction *action; |
| 208 | |
| 209 | if (!irqfixup) |
| 210 | return 0; |
| 211 | |
| 212 | /* We didn't actually handle the IRQ - see if it was misrouted? */ |
| 213 | if (action_ret == IRQ_NONE) |
| 214 | return 1; |
| 215 | |
| 216 | /* |
| 217 | * But for 'irqfixup == 2' we also do it for handled interrupts if |
| 218 | * they are marked as IRQF_IRQPOLL (or for irq zero, which is the |
| 219 | * traditional PC timer interrupt.. Legacy) |
| 220 | */ |
| 221 | if (irqfixup < 2) |
| 222 | return 0; |
| 223 | |
| 224 | if (!irq) |
| 225 | return 1; |
| 226 | |
| 227 | /* |
| 228 | * Since we don't get the descriptor lock, "action" can |
| 229 | * change under us. We don't really care, but we don't |
| 230 | * want to follow a NULL pointer. So tell the compiler to |
| 231 | * just load it once by using a barrier. |
| 232 | */ |
| 233 | action = desc->action; |
| 234 | barrier(); |
| 235 | return action && (action->flags & IRQF_IRQPOLL); |
| 236 | } |
| 237 | |
Ingo Molnar | 34ffdb7 | 2006-06-29 02:24:40 -0700 | [diff] [blame] | 238 | void note_interrupt(unsigned int irq, struct irq_desc *desc, |
David Howells | 7d12e78 | 2006-10-05 14:55:46 +0100 | [diff] [blame] | 239 | irqreturn_t action_ret) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 240 | { |
Andreas Mohr | 83d4e6e | 2006-06-23 02:05:32 -0700 | [diff] [blame] | 241 | if (unlikely(action_ret != IRQ_HANDLED)) { |
Alan Cox | 4f27c00 | 2007-07-15 23:40:55 -0700 | [diff] [blame] | 242 | /* |
| 243 | * If we are seeing only the odd spurious IRQ caused by |
| 244 | * bus asynchronicity then don't eventually trigger an error, |
Uwe Kleine-König | fbfecd3 | 2009-10-28 20:11:04 +0100 | [diff] [blame] | 245 | * otherwise the counter becomes a doomsday timer for otherwise |
Alan Cox | 4f27c00 | 2007-07-15 23:40:55 -0700 | [diff] [blame] | 246 | * working systems |
| 247 | */ |
S.Caglar Onur | 188fd89 | 2008-02-14 17:36:51 +0200 | [diff] [blame] | 248 | if (time_after(jiffies, desc->last_unhandled + HZ/10)) |
Alan Cox | 4f27c00 | 2007-07-15 23:40:55 -0700 | [diff] [blame] | 249 | desc->irqs_unhandled = 1; |
| 250 | else |
| 251 | desc->irqs_unhandled++; |
| 252 | desc->last_unhandled = jiffies; |
Andreas Mohr | 83d4e6e | 2006-06-23 02:05:32 -0700 | [diff] [blame] | 253 | if (unlikely(action_ret != IRQ_NONE)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 254 | report_bad_irq(irq, desc, action_ret); |
| 255 | } |
| 256 | |
Linus Torvalds | 92ea772 | 2007-05-24 08:37:14 -0700 | [diff] [blame] | 257 | if (unlikely(try_misrouted_irq(irq, desc, action_ret))) { |
| 258 | int ok = misrouted_irq(irq); |
| 259 | if (action_ret == IRQ_NONE) |
| 260 | desc->irqs_unhandled -= ok; |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 261 | } |
| 262 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 263 | desc->irq_count++; |
Andreas Mohr | 83d4e6e | 2006-06-23 02:05:32 -0700 | [diff] [blame] | 264 | if (likely(desc->irq_count < 100000)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 265 | return; |
| 266 | |
| 267 | desc->irq_count = 0; |
Andreas Mohr | 83d4e6e | 2006-06-23 02:05:32 -0700 | [diff] [blame] | 268 | if (unlikely(desc->irqs_unhandled > 99900)) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 269 | /* |
| 270 | * The interrupt is stuck |
| 271 | */ |
| 272 | __report_bad_irq(irq, desc, action_ret); |
| 273 | /* |
| 274 | * Now kill the IRQ |
| 275 | */ |
| 276 | printk(KERN_EMERG "Disabling IRQ #%d\n", irq); |
Thomas Gleixner | 1adb085 | 2008-04-28 17:01:56 +0200 | [diff] [blame] | 277 | desc->status |= IRQ_DISABLED | IRQ_SPURIOUS_DISABLED; |
| 278 | desc->depth++; |
Thomas Gleixner | bc310dd | 2010-09-27 12:45:02 +0000 | [diff] [blame] | 279 | desc->irq_data.chip->irq_disable(&desc->irq_data); |
Eric W. Biederman | f84dbb9 | 2008-07-10 14:48:54 -0700 | [diff] [blame] | 280 | |
Thomas Gleixner | d3c6004 | 2008-10-16 09:55:00 +0200 | [diff] [blame] | 281 | mod_timer(&poll_spurious_irq_timer, |
| 282 | jiffies + POLL_SPURIOUS_IRQ_INTERVAL); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 283 | } |
| 284 | desc->irqs_unhandled = 0; |
| 285 | } |
| 286 | |
Andreas Mohr | 83d4e6e | 2006-06-23 02:05:32 -0700 | [diff] [blame] | 287 | int noirqdebug __read_mostly; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 288 | |
Vivek Goyal | 343cde5 | 2007-01-11 01:52:44 +0100 | [diff] [blame] | 289 | int noirqdebug_setup(char *str) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 290 | { |
| 291 | noirqdebug = 1; |
| 292 | printk(KERN_INFO "IRQ lockup detection disabled\n"); |
Ingo Molnar | 06fcb0c | 2006-06-29 02:24:40 -0700 | [diff] [blame] | 293 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 294 | return 1; |
| 295 | } |
| 296 | |
| 297 | __setup("noirqdebug", noirqdebug_setup); |
Andi Kleen | 9e094c1 | 2008-01-30 13:32:48 +0100 | [diff] [blame] | 298 | module_param(noirqdebug, bool, 0644); |
| 299 | MODULE_PARM_DESC(noirqdebug, "Disable irq lockup detection when true"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 300 | |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 301 | static int __init irqfixup_setup(char *str) |
| 302 | { |
| 303 | irqfixup = 1; |
| 304 | printk(KERN_WARNING "Misrouted IRQ fixup support enabled.\n"); |
| 305 | printk(KERN_WARNING "This may impact system performance.\n"); |
Ingo Molnar | 06fcb0c | 2006-06-29 02:24:40 -0700 | [diff] [blame] | 306 | |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 307 | return 1; |
| 308 | } |
| 309 | |
| 310 | __setup("irqfixup", irqfixup_setup); |
Andi Kleen | 9e094c1 | 2008-01-30 13:32:48 +0100 | [diff] [blame] | 311 | module_param(irqfixup, int, 0644); |
Alan Cox | 200803d | 2005-06-28 20:45:18 -0700 | [diff] [blame] | 312 | |
| 313 | static int __init irqpoll_setup(char *str) |
| 314 | { |
| 315 | irqfixup = 2; |
| 316 | printk(KERN_WARNING "Misrouted IRQ fixup and polling support " |
| 317 | "enabled\n"); |
| 318 | printk(KERN_WARNING "This may significantly impact system " |
| 319 | "performance\n"); |
| 320 | return 1; |
| 321 | } |
| 322 | |
| 323 | __setup("irqpoll", irqpoll_setup); |