diff options
author | Viresh Kumar <[email protected]> | 2014-09-04 17:31:32 +0530 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2014-09-16 11:01:35 +0200 |
commit | 061f3806bbe4d8e86dddf101f75f49c38d3f1669 (patch) | |
tree | bb37d1a97976d37a4297ca8b1dbeb1ff099435ed /net/lapb/lapb_subr.c | |
parent | 1c42a389eaa0fddca6e6d9625e65ff62c9b90e80 (diff) |
power-supply: Mark 'if' blocks in power_supply_changed_work() with 'likely'
The 'if' statements in power_supply_changed_work() are mostly there for taking
care of races and normally they will always evaluate to true. Optimize them for
fast execution with 'likely' statements.
Also there is need to have better comments in code to mention about the races
clearly. Get them in place.
Cc: Zoran Markovic <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions