init/calibrate: Fix bug in calibrate_delay
authorJouni Hogander <jouni.hogander@intel.com>
Tue, 19 Jun 2012 11:03:21 +0000 (14:03 +0300)
committerbuildbot <buildbot@intel.com>
Thu, 21 Jun 2012 20:24:40 +0000 (13:24 -0700)
commitb96188a8f342442c58293250e0faa6378fd43c0a
tree298cda246074fa776a47f88d25b236d4e6c8a99d
parentc16fef047b70c5f0699798b471c65ba6a1c235f6
init/calibrate: Fix bug in calibrate_delay

BZ: 41942

There is a bug in calibrate_delay which causes delay calibration to be
performed on nonboot cpus when waking up from S3. This has huge impact on
screen resume latency. Fix this by correcting errorneous else if statement.

Change-Id: I57d0bd83f44d58ed8abe5e8aab7b34b00de04e2f
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/53297
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
init/calibrate.c