]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: rk3x: Remove unlikely() annotations
authorDoug Anderson <dianders@chromium.org>
Fri, 22 Aug 2014 17:43:44 +0000 (10:43 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 29 Sep 2014 20:41:18 +0000 (22:41 +0200)
commitb3da0e6d68c501091d79e8cd667d23be5876c3a7
tree075156e346522b87506ec3c81b2b4304eda33b56
parent586a452b437d34cc65c1e9f861e09964d2eb527a
i2c: rk3x: Remove unlikely() annotations

Having a transfer more than 32 bits is not all that unlikely.  Remove
the annotation.

The unlikely in the IRQ handler can't gain us much.  It's not in a
loop, so at most it would save 1 instruction per IRQ, which isn't
much.  In fact on the compiler I tested it produced the exact same
code.  Remove it too.

Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rk3x.c