From: Axel Lin Date: Fri, 5 Jul 2013 09:13:12 +0000 (+0800) Subject: genirq: generic chip: Use DIV_ROUND_UP to calculate numchips X-Git-Tag: v3.11-rc1~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=002fca5df168922103a2bb52748f9984e6de80b2;p=pandora-kernel.git 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 Cc: Grant Likely Cc: Tony Lindgren Cc: Arnd Bergmann Link: http://lkml.kernel.org/r/1373015592.18252.2.camel@phoenix Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed