[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1417140950-67103-6-git-send-email-long.wanglong@huawei.com>
Date:	Fri, 28 Nov 2014 02:15:48 +0000
From:	Wang Long <long.wanglong@...wei.com>
To:	<xuwei5@...ilicon.com>, <arnd@...db.de>, <yanhaifeng@...il.com>,
	<zhangfei.gao@...aro.org>, <haojian.zhuang@...aro.org>,
	<galak@...eaurora.org>, <ijc+devicetree@...lion.org.uk>,
	<jason@...edaemon.net>, <jh80.chung@...sung.com>,
	<khilman@...aro.org>, <lee.jones@...aro.org>,
	<linux@....linux.org.uk>, <long.wanglong@...wei.com>,
	<mark.rutland@....com>, <maxime.ripard@...e-electrons.com>,
	<obh+dt@...nel.org>, <olof@...om.net>, <pawel.moll@....com>,
	<swarren@...dia.com>, <thomas.petazzoni@...e-electrons.com>
CC:	<linux-kernel@...r.kernel.org>,
	<linux-arm-kernel@...ts.infradead.org>,
	<devicetree@...r.kernel.org>, <peifeiyue@...wei.com>,
	<huxinwei@...wei.com>
Subject: [PATCH 5/7] ARM: hisi: add a common smp_prepares_cpus function
As hix5hd2 and hip01 has the same .smp_prepare_cpus
in struct smp_operations, so rename hix5hd2_smp_prepare_cpus
to hisi_common_smp_prepare_cpus.
the hip01 will use hisi_common_smp_prepare_cpus in its
struct smp_operations.
Signed-off-by: Wang Long <long.wanglong@...wei.com>
---
 arch/arm/mach-hisi/platsmp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-hisi/platsmp.c b/arch/arm/mach-hisi/platsmp.c
index 575dd82..b3c3a58 100644
--- a/arch/arm/mach-hisi/platsmp.c
+++ b/arch/arm/mach-hisi/platsmp.c
@@ -96,7 +96,7 @@ struct smp_operations hi3xxx_smp_ops __initdata = {
 #endif
 };
 
-static void __init hix5hd2_smp_prepare_cpus(unsigned int max_cpus)
+static void __init hisi_common_smp_prepare_cpus(unsigned int max_cpus)
 {
 	hisi_enable_scu_a9();
 }
@@ -125,7 +125,7 @@ static int hix5hd2_boot_secondary(unsigned int cpu, struct task_struct *idle)
 
 
 struct smp_operations hix5hd2_smp_ops __initdata = {
-	.smp_prepare_cpus	= hix5hd2_smp_prepare_cpus,
+	.smp_prepare_cpus	= hisi_common_smp_prepare_cpus,
 	.smp_boot_secondary	= hix5hd2_boot_secondary,
 #ifdef CONFIG_HOTPLUG_CPU
 	.cpu_die		= hix5hd2_cpu_die,
-- 
1.8.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists
 
