Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932815AbbDJU6Y (ORCPT ); Fri, 10 Apr 2015 16:58:24 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:53009 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752538AbbDJU6W (ORCPT ); Fri, 10 Apr 2015 16:58:22 -0400 From: Arnd Bergmann To: Kumar Gala Cc: linux-arm-msm@vger.kernel.org, Abhimanyu Kapur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arm@kernel.org, devicetree@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com Subject: Re: [RFC PATCH v2 4/4] arm64: qcom: add cpu operations Date: Fri, 10 Apr 2015 22:57:48 +0200 Message-ID: <5280857.52XJYGkVLd@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1428698605-13166-5-git-send-email-galak@codeaurora.org> References: <1428698605-13166-1-git-send-email-galak@codeaurora.org> <1428698605-13166-5-git-send-email-galak@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:yciOFken6Ob3d37/c5Q8VdNImRe1jo84Q4ItsV/LB6erdApttZh j1kDfhuKCzOIxxBQ+SV8vziHeX3TyBgTfjrn2Uvn5o8FloAUPcdmIbLWAhoY0i4tCJRIYhp BvOqZM+gGG+2xlLyp9jn1u2TFqUsNb/o+7EiCc0LONBOH2/IyuK4s5PT0++r7z1lwsAf5tj ogMOgOCXsUncvTi9kr4UA== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 873 Lines: 26 On Friday 10 April 2015 15:43:25 Kumar Gala wrote: > +static int qcom_cpu_boot(unsigned int cpu) > +{ > + int ret = 0; > + > + if (per_cpu(cold_boot_done, cpu) == false) { > + ret = qcom_unclamp_secondary_arm_cpu(cpu); > + if (ret) > + return ret; > + per_cpu(cold_boot_done, cpu) = true; > + } > + return secondary_pen_release(cpu); > +} > + Please add a comment here to explain why you need a two-stage process here, rather than just booting the CPU without the secondary_pen. Are you working around a specific silicon bug here? Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/