From patchwork Fri Mar 22 11:48:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 160887 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp780091jan; Fri, 22 Mar 2019 05:56:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuV7NRd4p9js5bF8a4buWc0J4JGucNzwhhpVh6+3cdG0JKiacRggJ2nbjWD+m4TDEr+rDN X-Received: by 2002:aa7:8d17:: with SMTP id j23mr8964853pfe.62.1553259408791; Fri, 22 Mar 2019 05:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553259408; cv=none; d=google.com; s=arc-20160816; b=nAJT1c6PFQJSBMGrO4DZYSPCQY+d28TSBBCdjw0fRmxh80djiow0DyJg10EWsIKyh/ CgWLWiJZKQ1YHPfwHbXDIp0dIICYVcUsqf3bUb6JJJEiCQdLUHJkoRTcclCRe8VmUCci plEaX0ahxhSMLFZzG5jOej+pZyqP5H6rFNZZ6bZKzuqNuVtPrxMA1pX5TbHH7krlDvqr 0rTgnrEiUkTS3Fv+cfMPen1ylW1cGhaoRvpvk2+LKiOdemWLoE0gjB0meH8hGhNou3S+ 0V3g8npmds9ywK1Pbx7OM95T9wxSfYHeCHI/N7w3l0KVeiBZ3TlcDgxlln4DcuXpCFEt aClg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=gOapTRepoIgQUEff9Xp/+rQoPW5Ll5OB0yXKeq52fQU=; b=byw2/icGCOiTLUUKZZPBOuEfIQwGcM982yIPP1H4BaFVpFKCc84NUvDSuTELfvtXUo PfRJfxw31M0xCNtn6dQqQPyAOS0A+avSNrWGnIhsTVb6rlm0iXbotHBcCwWQ7+hueXdO Vhday8yHzs/J6cjVZoh1nwKsH0yNdTIkR2csiobiiRQT4SPYLgFG3v5Q5tBi+jBh5kdh ilXVb6HUjrRVfvZM9pdVaOXOi7yGwH6fkCjSjCeNYtyQ83W5tRtePfGJHDXUBIRLYoj8 s1H7ojYTAom3ozoO4Sk+hZW8Qq40iAe/wNHr+O93/XH6kBR27K7rM3euIEUQ2oGgP6Qw w2bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="pAVK/Noj"; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si5301036pgl.331.2019.03.22.05.56.48; Fri, 22 Mar 2019 05:56:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="pAVK/Noj"; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732184AbfCVLst (ORCPT + 3 others); Fri, 22 Mar 2019 07:48:49 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:54079 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732339AbfCVLss (ORCPT ); Fri, 22 Mar 2019 07:48:48 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190322114846euoutp026104da5def0b89b48e19dd9b60f89ef5~ORX1VevHc0653906539euoutp02R; Fri, 22 Mar 2019 11:48:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190322114846euoutp026104da5def0b89b48e19dd9b60f89ef5~ORX1VevHc0653906539euoutp02R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1553255326; bh=gOapTRepoIgQUEff9Xp/+rQoPW5Ll5OB0yXKeq52fQU=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=pAVK/NojoqUa03sqCm4ECxKO0UdGBNuFkw+o/niMpdLC1rYInQDqhDrvo/ZMFlokV hMWy2o+GcUGkjVj/jjzZiQeziTSv02Hr+oyFa86smwX7VJ5bh+GPklIcMsXJpToFE6 Z0wOz8DS3FYs5dFXsYQd8Q1hn01DGM22hB2rG08c= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190322114845eucas1p11944b738e3eab735a8513032b7e728f8~ORX1AdwVX1109311093eucas1p15; Fri, 22 Mar 2019 11:48:45 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id E1.4E.04441.D9BC49C5; Fri, 22 Mar 2019 11:48:45 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190322114844eucas1p16095d6c26d9b6ef23c1168ce70194255~ORX0S1iJX3059830598eucas1p1u; Fri, 22 Mar 2019 11:48:44 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-81-5c94cb9ded75 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 41.76.04128.C9BC49C5; Fri, 22 Mar 2019 11:48:44 +0000 (GMT) Received: from AMDC2765.digital.local ([106.120.51.73]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0POR007ESNH2J220@eusync3.samsung.com>; Fri, 22 Mar 2019 11:48:44 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 2/3] ARM: exynos: Simplify code in Exynos3250 CPU core restart path Date: Fri, 22 Mar 2019 12:48:32 +0100 Message-id: <20190322114833.12686-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20190322114833.12686-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplkeLIzCtJLcpLzFFi42LZduznOd25p6fEGBycKGexccZ6Vovz5zew W8w4v4/JYu2Ru+wOLB6bVnWyefRtWcXo8XmTXABzFJdNSmpOZllqkb5dAlfG1Gtn2QrWsVfc bznN1MC4gK2LkYNDQsBEYvsqmy5GLg4hgRWMEs8uTWOBcD4zSny6d5Cpi5ETrGj9qVtMEIll jBITbp5mhnD+M0rseLISrIpNwFCi620XG4gtIqAq8bltATtIEbNAH6PE9b1zmUESwgKhEpcf 72QEsVmAivZe+QBm8wrYSszef54VYp28xOoNB8DqOQXsJLZvPMAGMkhC4CGrxPrWlSwQRS4S 919tgrpPRuLy5G4WiKJmRomH59ayQzg9jBKXm2YwQlRZSxw+fhFsBbMAn8SkbdOZIUHAK9HR JgRR4iFxZdk2sKFCAhMZJb488ZjAKLGAkWEVo3hqaXFuemqxYV5quV5xYm5xaV66XnJ+7iZG YOSc/nf80w7Gr5eSDjEKcDAq8fBq9E6OEWJNLCuuzD3EKMHBrCTCuysaKMSbklhZlVqUH19U mpNafIhRmoNFSZy3muFBtJBAemJJanZqakFqEUyWiYNTqoFRae4Xx8MHP07cfbCuc/Mp59af YaenhWoe5848llP40uig559M5rcbMxpPVn5w1hHZq++S9P3ArSQ1xqjZv2T27pg53fJEnVTW 841qZz/vXu525rTgsqXccQWGVpeZvz48xDzjha8iT1hzttC72AgX5e9LfQ0ltY5yHzmfH8ix YmmB8P/da9UzlFiKMxINtZiLihMBHIp4gpgCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPJMWRmVeSWpSXmKPExsVy+t/xq7pzTk+JMXi7x9Ri44z1rBbnz29g t5hxfh+Txdojd9kdWDw2repk8+jbsorR4/MmuQDmKC6blNSczLLUIn27BK6MqdfOshWsY6+4 33KaqYFxAVsXIyeHhICJxPpTt5i6GLk4hASWMEq0HNnCAuE0Mkmsm/eLGaSKTcBQouttF1iH iICqxOe2BewgRcwCExglVi+cxQqSEBYIlfjT/o4JxGYBKtp75QMjiM0rYCsxe/95Voh18hKr NxwAG8opYCexfeMBsKFCQDWPdi5mncDIs4CRYRWjSGppcW56brGRXnFibnFpXrpecn7uJkZg MGw79nPLDsaud8GHGAU4GJV4eE80T44RYk0sK67MPcQowcGsJMK7KxooxJuSWFmVWpQfX1Sa k1p8iFGag0VJnPe8QWWUkEB6YklqdmpqQWoRTJaJg1OqgfHkMX6O2r+PPrO8CBBbKxPlf53f oa+W4/CbTxmejFwPg4S/la0SFU3R9l0UPMkyRPfaka/ObXeM4s4ll6juMS2fkL1j2aV9v/L/ LF/T7OxzMvim8PLfqSlJx73W2ZTNfHxRV/VREWdfretsK4e8peeub9oVwiTFfWrHtWbnueIC LFF6B1k1XyixFGckGmoxFxUnAgC2ju+4AgIAAA== X-CMS-MailID: 20190322114844eucas1p16095d6c26d9b6ef23c1168ce70194255 CMS-TYPE: 201P X-CMS-RootMailID: 20190322114844eucas1p16095d6c26d9b6ef23c1168ce70194255 References: <20190322114833.12686-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org exynos_core_restart() is called by secondary CPU boot procedure, used by CPU hotplug. Replace of_machine_is_compatible() call with a simple SoC revision check. of_machine_is_compatible() function performs a dozen of string comparisons during the full device tree walk, while soc_is_exynos3250() is a simple integer check on SoC revision variable. Signed-off-by: Marek Szyprowski --- arch/arm/mach-exynos/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index 65da13923b8f..d5d48fbdab17 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -216,7 +216,7 @@ void exynos_core_restart(u32 core_id) { u32 val; - if (!of_machine_is_compatible("samsung,exynos3250")) + if (!soc_is_exynos3250()) return; while (!pmu_raw_readl(S5P_PMU_SPARE2))