[PATCH 24/37] powerpc: return early if irq_host lookup type is wrong

2011-05-11 Thread Milton Miller
If for some reason the code incrorectly calls the wrong function to manage the revmap, not only should we warn, we should take action. However, in the paths we expect to be taken every delivered interrupt change to WARN_ON_ONCE. Use the if (WARN_ON(x)) format to get the unlikely for free.

Re: [PATCH 24/37] powerpc: return early if irq_host lookup type is wrong

2011-05-11 Thread Grant Likely
On Wed, May 11, 2011 at 7:29 AM, Milton Miller milt...@bga.com wrote: If for some reason the code incrorectly calls the wrong function to manage the revmap, not only should we warn, we should take action. However, in the paths we expect to be taken every delivered interrupt change to