From patchwork Sat Dec 10 10:46:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 9469245 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EEC9260231 for ; Sat, 10 Dec 2016 10:46:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E29A72855E for ; Sat, 10 Dec 2016 10:46:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D742B2858F; Sat, 10 Dec 2016 10:46:09 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 80C5A2855E for ; Sat, 10 Dec 2016 10:46:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFf99-0003Dm-Vb; Sat, 10 Dec 2016 10:44:51 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFf8M-0002vz-TM for linux-arm-kernel@lists.infradead.org; Sat, 10 Dec 2016 10:44:04 +0000 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OHY01EKXTSP3R80@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Sat, 10 Dec 2016 19:43:38 +0900 (KST) X-AuditID: cbfee61a-f79916d0000062de-c1-584bdc5aadef Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 87.C1.25310.A5CDB485; Sat, 10 Dec 2016 19:43:38 +0900 (KST) Received: from pankaj.sisodomain.com ([107.108.83.125]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OHY0002ZTSGMM30@mmp1.samsung.com>; Sat, 10 Dec 2016 19:43:38 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/3] ARM: EXYNOS: add CPU_METHOD_OF_DECLARE for exynos SoCs Date: Sat, 10 Dec 2016 16:16:02 +0530 Message-id: <1481366762-26413-4-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1481366762-26413-1-git-send-email-pankaj.dubey@samsung.com> References: <1481366762-26413-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFLMWRmVeSWpSXmKPExsVy+t9jAd2oO94RBnNeGFq8ebuGyaL/8Wtm i/PnN7BbbHp8jdVixvl9TBaLtn5ht+hYxujA7rFpVSebx+Yl9R5b+u+ye/RtWcXo8XmTXABr lJtNRmpiSmqRQmpecn5KZl66rVJoiJuuhZJCXmJuqq1ShK5vSJCSQlliTimQZ2SABhycA9yD lfTtEtwyDn99xlpwmbWi8fdlxgbG1yxdjBwcEgImErOv2XUxcgKZYhIX7q1n62Lk4hASWMoo MWfbb0YI5yejxOn739hAqtgEdCWevJ/LDGKLCHhLTD7zlx3EZhaol7hz+A4riC0s4Ccxd9VD sDiLgKrE4T+fwGxeAQ+Jo53v2SG2yUncPNcJNodTwFNi5eMVLCC2EFDNzyMXWCcw8i5gZFjF KJFakFxQnJSea5iXWq5XnJhbXJqXrpecn7uJERzOz6R2MB7c5X6IUYCDUYmH1+GQV4QQa2JZ cWXuIUYJDmYlEd7p170jhHhTEiurUovy44tKc1KLDzGaAh02kVlKNDkfGGt5JfGGJuYm5sYG FuaWliZGSuK8jbOfhQsJpCeWpGanphakFsH0MXFwSjUwijeaix4uP1ukrfds5S2/FcwsF70z hQvvNUsfSOk/tG2+Q8TxWby5pq/L96zcICc3ZffpoxY3zex+Wn9jypQ/GFU590hGslXetDnq f3gddiZFJXNZnjVZ3FWzWPuS4a5jJytbUkJY1fYdOFDC89v/jGvVojCb16c/n+ifd5KdbdfK I5nN/o1XlViKMxINtZiLihMBaSueEn0CAAA= X-MTR: 20000000000000000@CPGS X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161210_024403_222485_C154CCFD X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: javier@osg.samsung.com, kgene@kernel.org, thomas.ab@samsung.com, krzk@kernel.org, Pankaj Dubey MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add CPU_METHOD_OF_DECLARE to use enable_method property of cpus node. To keep compatibility with older DTBs lets keep older method of registering smp_ops via machine_descriptor. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/platsmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index 94405c7..43eec10 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -474,3 +474,5 @@ const struct smp_operations exynos_smp_ops __initconst = { .cpu_die = exynos_cpu_die, #endif }; + +CPU_METHOD_OF_DECLARE(exynos_smp, "samsung,exynos-smp", &exynos_smp_ops);