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: 9469239 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 DD58F60231 for ; Sat, 10 Dec 2016 10:43:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1C6E28565 for ; Sat, 10 Dec 2016 10:43:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C63A928598; Sat, 10 Dec 2016 10:43:42 +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=-6.9 required=2.0 tests=BAYES_00,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 76CD628565 for ; Sat, 10 Dec 2016 10:43:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752673AbcLJKnm (ORCPT ); Sat, 10 Dec 2016 05:43:42 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:52029 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752924AbcLJKnl (ORCPT ); Sat, 10 Dec 2016 05:43:41 -0500 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-samsung-soc@vger.kernel.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 Cc: krzk@kernel.org, kgene@kernel.org, javier@osg.samsung.com, thomas.ab@samsung.com, Pankaj Dubey 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 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 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);