forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitbf22ff4
genirq: Avoid unnecessary low level irq function calls
Check irq state in enable/disable/unmask/mask_irq to avoid unnecessarylow level irq function calls.This has two advantages: - Conditionals are faster than hardware access - Solves issues with the underlying refcounting of the pinctrl infrastructureSuggested-by: Thomas Gleixner <tglx@linutronix.de>Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Cc: tfiga@chromium.orgCc: briannorris@chromium.orgCc: dianders@chromium.orgLink:http://lkml.kernel.org/r/1498476814-12563-2-git-send-email-jeffy.chen@rock-chips.com1 parentd829b8f commitbf22ff4
1 file changed
+33
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
323 | 328 | | |
324 | 329 | | |
325 | 330 | | |
326 | 331 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
333 | 343 | | |
334 | 344 | | |
335 | 345 | | |
| |||
378 | 388 | | |
379 | 389 | | |
380 | 390 | | |
381 | | - | |
| 391 | + | |
382 | 392 | | |
383 | | - | |
384 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
385 | 396 | | |
386 | 397 | | |
387 | 398 | | |
388 | | - | |
389 | 399 | | |
390 | 400 | | |
391 | 401 | | |
392 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
393 | 406 | | |
394 | 407 | | |
395 | 408 | | |
| |||
398 | 411 | | |
399 | 412 | | |
400 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
401 | 417 | | |
402 | 418 | | |
403 | 419 | | |
| |||
411 | 427 | | |
412 | 428 | | |
413 | 429 | | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
| 430 | + | |
418 | 431 | | |
419 | 432 | | |
420 | 433 | | |
| |||
0 commit comments
Comments
(0)