From patchwork Mon Jan 19 16:52:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 43331 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B93EB2034D for ; Mon, 19 Jan 2015 16:53:20 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id w7sf17497042lbi.0 for ; Mon, 19 Jan 2015 08:53:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Iqmn4XJW7mi43x0oZgbfRMsnN9Lqoyo/VKsoC/HwTa0=; b=BIJkgT6lYUvqppx6/tShiOdY1N8fVYAQ5BKIWJmddBqF78Zw5ANIpk9wSRyE/JGHCU KPxH3kf9nw03DK5bXngp/MvoZRRtUAfG4BwFmupaLWsntwTpL493+EC2GzE/YddsMYkO jnFeGJdYfXvcGA4TJ9W4u4Bqu8k/byqC6rg+OJdz4ZzYAOoTMkerVa6wEsObPV6Rg3g5 tBBMUSySqk6ZqSnb/yfwmEtnXwTb+OaaJATlugN9kasJ6v5AHkqcWZomo0JWxZ5Gt+Pj LPi08jvBENHJZhNMh63/bhwbwGjW2X5Bc7GcdjdX1PcaR2NbZQS8s7uQHp3IxL5+M+RA 60Rw== X-Gm-Message-State: ALoCoQky/8VsnWNeUY52IPBLlXGR4TAIjaNWe87VhFZcJoZdaSDKky2TEZYI795mbKWvqwiX16Px X-Received: by 10.194.109.129 with SMTP id hs1mr492632wjb.3.1421686396036; Mon, 19 Jan 2015 08:53:16 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.74 with SMTP id q10ls623463laq.43.gmail; Mon, 19 Jan 2015 08:53:15 -0800 (PST) X-Received: by 10.152.182.235 with SMTP id eh11mr15214066lac.9.1421686395837; Mon, 19 Jan 2015 08:53:15 -0800 (PST) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id t1si13959219laa.10.2015.01.19.08.53.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 Jan 2015 08:53:15 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id 10so29141949lbg.5 for ; Mon, 19 Jan 2015 08:53:15 -0800 (PST) X-Received: by 10.112.26.135 with SMTP id l7mr32089501lbg.56.1421686395665; Mon, 19 Jan 2015 08:53:15 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp1150375lbb; Mon, 19 Jan 2015 08:53:14 -0800 (PST) X-Received: by 10.66.175.205 with SMTP id cc13mr46176493pac.14.1421686393755; Mon, 19 Jan 2015 08:53:13 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bh17si1190680pdb.149.2015.01.19.08.53.12; Mon, 19 Jan 2015 08:53:13 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752134AbbASQxI (ORCPT + 28 others); Mon, 19 Jan 2015 11:53:08 -0500 Received: from mail-wi0-f182.google.com ([209.85.212.182]:58041 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751357AbbASQxF (ORCPT ); Mon, 19 Jan 2015 11:53:05 -0500 Received: by mail-wi0-f182.google.com with SMTP id n3so16054971wiv.3 for ; Mon, 19 Jan 2015 08:53:04 -0800 (PST) X-Received: by 10.194.191.164 with SMTP id gz4mr6027187wjc.70.1421686384710; Mon, 19 Jan 2015 08:53:04 -0800 (PST) Received: from localhost.localdomain (135-224-190-109.dsl.ovh.fr. [109.190.224.135]) by mx.google.com with ESMTPSA id u13sm17945724wjr.26.2015.01.19.08.53.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Jan 2015 08:53:04 -0800 (PST) From: Daniel Lezcano To: arnd@arndb.de, olof@lixom.net, linux@arm.linux.org.uk Cc: thomas.petazzoni@free-electrons.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ARM: Marvell: Remove init cpus function Date: Mon, 19 Jan 2015 17:52:59 +0100 Message-Id: <1421686381-12397-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , With the next patches, the init cpus function will be changed to be factored out. The function 'armada_xp_smp_init_cpus' does nothing more than a sanity check after the DT has been parsed. Even if this code is valid, it does not give a real benefit as the DT should be correctly filled. Remove this callback. Signed-off-by: Daniel Lezcano --- arch/arm/mach-mvebu/platsmp.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/arm/mach-mvebu/platsmp.c b/arch/arm/mach-mvebu/platsmp.c index 58cc8c1..3e93422 100644 --- a/arch/arm/mach-mvebu/platsmp.c +++ b/arch/arm/mach-mvebu/platsmp.c @@ -30,8 +30,6 @@ #include "pmsu.h" #include "coherency.h" -#define ARMADA_XP_MAX_CPUS 4 - #define AXP_BOOTROM_BASE 0xfff00000 #define AXP_BOOTROM_SIZE 0x100000 @@ -114,14 +112,6 @@ static void armada_xp_secondary_init(unsigned int cpu) mvebu_v7_pmsu_idle_exit(); } -static void __init armada_xp_smp_init_cpus(void) -{ - unsigned int ncores = num_possible_cpus(); - - if (ncores == 0 || ncores > ARMADA_XP_MAX_CPUS) - panic("Invalid number of CPUs in DT\n"); -} - static void __init armada_xp_smp_prepare_cpus(unsigned int max_cpus) { struct device_node *node; @@ -171,7 +161,6 @@ static int armada_xp_cpu_kill(unsigned int cpu) #endif struct smp_operations armada_xp_smp_ops __initdata = { - .smp_init_cpus = armada_xp_smp_init_cpus, .smp_prepare_cpus = armada_xp_smp_prepare_cpus, .smp_boot_secondary = armada_xp_boot_secondary, .smp_secondary_init = armada_xp_secondary_init,