From: Viresh Kumar Date: Thu, 4 Sep 2014 12:01:32 +0000 (+0530) Subject: power-supply: Mark 'if' blocks in power_supply_changed_work() with 'likely' X-Git-Tag: fixes-against-v3.18-rc2~70^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=061f3806bbe4d8e86dddf101f75f49c38d3f1669;p=pandora-kernel.git 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 Signed-off-by: Viresh Kumar Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed