From: Jouni Hogander Date: Tue, 19 Jun 2012 11:03:21 +0000 (+0300) Subject: init/calibrate: Fix bug in calibrate_delay X-Git-Tag: 2.1b_release~583 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b96188a8f342442c58293250e0faa6378fd43c0a;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git 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 Reviewed-on: http://android.intel.com:8080/53297 Reviewed-by: Koskinen, Ilkka Reviewed-by: Mansoor, Illyas Reviewed-by: Yang, Fei Tested-by: Ng, Cheon-woei Reviewed-by: buildbot Tested-by: buildbot --- diff --git a/init/calibrate.c b/init/calibrate.c index aae2f40..d9cfd7b 100644 --- a/init/calibrate.c +++ b/init/calibrate.c @@ -253,10 +253,11 @@ void __cpuinit calibrate_delay(void) if (!printed) pr_info("Calibrating delay loop (skipped) " "preset value.. "); - } else if ((!printed) && lpj_fine) { + } else if (lpj_fine) { lpj = lpj_fine; - pr_info("Calibrating delay loop (skipped), " - "value calculated using timer frequency.. "); + if (!printed) + pr_info("Calibrating delay loop (skipped), " + "value calculated using timer frequency.. "); } else if ((lpj = calibrate_delay_direct()) != 0) { if (!printed) pr_info("Calibrating delay using timer "