summaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/cpu_buffer.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-09-04 17:31:32 +0530
committerSebastian Reichel <sre@kernel.org>2014-09-16 11:01:35 +0200
commit061f3806bbe4d8e86dddf101f75f49c38d3f1669 (patch)
treebb37d1a97976d37a4297ca8b1dbeb1ff099435ed /drivers/oprofile/cpu_buffer.c
parent1c42a389eaa0fddca6e6d9625e65ff62c9b90e80 (diff)
downloadop-kernel-dev-061f3806bbe4d8e86dddf101f75f49c38d3f1669.zip
op-kernel-dev-061f3806bbe4d8e86dddf101f75f49c38d3f1669.tar.gz
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 'drivers/oprofile/cpu_buffer.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud