diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-07-05 13:13:12 +0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2013-07-05 13:39:25 +0400 |
commit | 002fca5df168922103a2bb52748f9984e6de80b2 (patch) | |
tree | 9742e650398d3f48d8cf2ebfe8868c14c778a44a /drivers/irqchip/irq-moxart.c | |
parent | 5b8aae489a07ac7d5a2cb897d6ca1fddb0c0043a (diff) | |
download | linux-002fca5df168922103a2bb52748f9984e6de80b2.tar.xz |
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>
Diffstat (limited to 'drivers/irqchip/irq-moxart.c')
0 files changed, 0 insertions, 0 deletions