From patchwork Mon Jan 28 23:06:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Menefy X-Patchwork-Id: 10785047 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 86B7491E for ; Mon, 28 Jan 2019 23:07:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76AEA2B26C for ; Mon, 28 Jan 2019 23:07:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B47C2B4D5; Mon, 28 Jan 2019 23:07:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 227AA2B4D0 for ; Mon, 28 Jan 2019 23:07:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726937AbfA1XHG (ORCPT ); Mon, 28 Jan 2019 18:07:06 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37226 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbfA1XHG (ORCPT ); Mon, 28 Jan 2019 18:07:06 -0500 Received: by mail-wr1-f65.google.com with SMTP id s12so19997170wrt.4 for ; Mon, 28 Jan 2019 15:07:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mathembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=PiHkZ/5jaqPnV3WBhCp06Z6bYFbrn9HV5SsnU88DseI=; b=OuVTUL++4WG5WVqEvmM93hvvWXpdm9O0q8YYqHhgOy3I5VxAtUkqDIb3VyoVaH9MSV 2aOCTbZ4Nl+hmilJcmoP5nL+e5nFzyxkWqI322suaMXKcPCSKX6W1OhKDJ1M6CO3a23n kZEzKjsqUNLCjcblg9Dj7NxtbefgVtwzpXfY5++FEqcIhONTEZPpoWLbV0D8AMX0/7NX wLw99rK8m+L63crFgv7ljSlDLj1YjikbN1zjK8fhfSWpJtURoTb/3YDfkoFfkfCVtE/c bj57vQcZU1v2U04jE50jxboShdh/ojRpwieadgTT0sQz1JILTJvCvtP5+tTdV1bpRwwE M/hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=PiHkZ/5jaqPnV3WBhCp06Z6bYFbrn9HV5SsnU88DseI=; b=cKrtUj39OB3ZJydQ1WLQAdkXB5jY5Izjw/IAWAkzd+d+AqqtDfqv6ndvHZsNftI68g ecDCmbWAb68wSKGCJeT0K44PpKoTfuQH7qtU0p4tXs1NmtcLnnixEYH5fwTp/yKOp139 qZEt3SsTssSnr2Ki5wGfAp/5KbmIVo6pRl7MN2RM6mDWIvZUJmV2+Q/+UgyFTfj8PtMZ kNiuRsbUZ6QL/F8XvmJKhLgBHIbR7I31LCXxt1RyO1KBbh1GDEM67c5FTp0MFwqNDVN/ CX+FCo6UI/67uWQeSIJh8B/nv2n8brRPdN5SB5M9TamUQZtl5J7ortzV+/iUbx3ClBks Md/g== X-Gm-Message-State: AJcUukcnenwMNCNWsX+6DfXRpwgGCTi/Y0OcyyOtfZ/EqADM//GXbHa7 fI5lJ2QRNqhLpt06pEX/95rc+y6B29q0UQ== X-Google-Smtp-Source: ALg8bN42Yj7a+dFVCgUAxXPmLXejqLUTw1RyNVCmbZ/TSITniwKRABQb9gmFGdBdNy1h5l7Xly0n1w== X-Received: by 2002:adf:fdc2:: with SMTP id i2mr24341001wrs.117.1548716824774; Mon, 28 Jan 2019 15:07:04 -0800 (PST) Received: from diamond.mathembedded.com (host86-176-243-190.range86-176.btcentralplus.com. [86.176.243.190]) by smtp.gmail.com with ESMTPSA id o64sm506765wmo.47.2019.01.28.15.07.03 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 15:07:03 -0800 (PST) From: Stuart Menefy To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 02/17] ARM: EXYNOS: Fix timeout booting secondary CPUs Date: Mon, 28 Jan 2019 23:06:45 +0000 Message-Id: <20190128230700.7325-3-stuart.menefy@mathembedded.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20190128230700.7325-1-stuart.menefy@mathembedded.com> References: <20190128230700.7325-1-stuart.menefy@mathembedded.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Without this fix the loop waiting for the timeout exits, but the subsequent test to see if the timeout occurred fails. Signed-off-by: Stuart Menefy --- arch/arm/mach-exynos/platsmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index c39ffd2e2fe6..b6da7edbbd2f 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -336,9 +336,9 @@ static int exynos_boot_secondary(unsigned int cpu, struct task_struct *idle) /* wait max 10 ms until cpu1 is on */ while (exynos_cpu_power_state(core_id) != S5P_CORE_LOCAL_PWR_EN) { - if (timeout-- == 0) + if (timeout == 0) break; - + timeout--; mdelay(1); }