Jeremy Kerr 5d4bac9a5f genirq: Clarify logic calculating bogus irqreturn_t values
Although irqreturn_t is an enum, we treat it (and its enumeration
constants) as a bitmask.

However, bad_action_ret() uses a less-than operator to determine whether
an irqreturn_t falls within allowable bit values, which means we need to
know the signededness of an enum type to read the logic, which is
implementation-dependent.

This change explicitly uses an unsigned type for the comparison. We do
this instead of changing to a bitwise test, as the latter compiles to
increased instructions in this hot path.

It looks like we get the correct behaviour currently (bad_action_ret(-1)
returns 1), so this is purely a readability fix.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Link: http://lkml.kernel.org/r/1487219049-4061-1-git-send-email-jk@ozlabs.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2017-02-16 15:32:19 +01:00
..
2016-12-25 17:21:22 +01:00
2017-01-12 07:01:56 -07:00
2016-11-25 16:25:52 -05:00
2016-12-25 17:21:22 +01:00
2016-12-12 18:55:06 -08:00
2017-01-24 16:26:14 -08:00
2016-05-27 15:26:11 -07:00
2016-12-22 22:58:37 -05:00
2017-01-24 06:23:51 +13:00
2016-09-22 20:00:36 -05:00