event/sw: add unlikely branch predict
authorVipin Varghese <vipin.varghese@intel.com>
Tue, 27 Feb 2018 20:08:05 +0000 (01:38 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 16 Apr 2018 08:06:55 +0000 (10:06 +0200)
commit63ddc002391359e5b2bb375b63939eb4e911a709
tree6835187c09f71d1a008798cc2cec9c42f842355d
parent569758758dcd9bece5f2cc079f7e427a227040cd
event/sw: add unlikely branch predict

For most run cases 'sw->started' holds true. Adding a branch prediction
suggestion to compiler helps as this is first conditional check just
after entering the function.

Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
drivers/event/sw/sw_evdev_scheduler.c