diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-09-04 17:31:32 +0530 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2014-09-16 11:01:35 +0200 |
commit | 061f3806bbe4d8e86dddf101f75f49c38d3f1669 (patch) | |
tree | bb37d1a97976d37a4297ca8b1dbeb1ff099435ed /tools/perf/scripts/python/event_analyzing_sample.py | |
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 <zrn.markovic@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions