Axel Lin 002fca5df1 genirq: generic chip: Use DIV_ROUND_UP to calculate numchips
The number of interrupts in a domain may be not divisible by the
number of interrupts each chip handles. Integer division may truncate
the result, thus use DIV_ROUND_UP to count numchips.

Seems all users of irq_alloc_domain_generic_chips() in current code do
not have this issue. I just found the issue while reading the code.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: http://lkml.kernel.org/r/1373015592.18252.2.camel@phoenix
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2013-07-05 11:39:25 +02:00
..
2013-04-22 07:09:06 -07:00
2013-04-15 13:25:16 +02:00
2012-12-20 17:40:19 -08:00
2013-05-07 20:16:25 -07:00
2013-05-07 20:16:25 -07:00
2013-05-05 00:16:35 -04:00
2013-04-30 17:04:03 -07:00
2013-06-28 14:10:57 +02:00
2013-04-29 13:55:38 -07:00