Skip to content

Commit c2fff85

Browse files
hzhuang1olofj
authored andcommitted
ARM: hisi: remove smp from machine descriptor
Use CPU_METHOD_OF_DECLARE() instead. And declare smp method in dts file. Changelog: v6: * Use hisilicon,hi3620-smp as enable-method property in Hi3620 dts. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org> Acked-by: Wei Xu <xuwei5@hisilicon.com> Signed-off-by: Olof Johansson <olof@lixom.net>
1 parent 4a9b373 commit c2fff85

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎arch/arm/boot/dts/hi3620.dtsi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
cpus {
3434
#address-cells = <1>;
3535
#size-cells = <0>;
36+
enable-method = "hisilicon,hi3620-smp";
3637

3738
cpu@0 {
3839
device_type = "cpu";

‎arch/arm/boot/dts/hisi-x5hd2-dkb.dts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
cpus {
2222
#address-cells = <1>;
2323
#size-cells = <0>;
24+
enable-method = "hisilicon,hix5hd2-smp";
2425

2526
cpu@0 {
2627
compatible = "arm,cortex-a9";

‎arch/arm/mach-hisi/hisilicon.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include <asm/mach/arch.h>
1919
#include <asm/mach/map.h>
2020

21-
#include "core.h"
22-
2321
#define HI3620_SYSCTRL_PHYS_BASE 0xfc802000
2422
#define HI3620_SYSCTRL_VIRT_BASE 0xfe802000
2523

@@ -55,7 +53,6 @@ static const char *hi3xxx_compat[] __initconst = {
5553
DT_MACHINE_START(HI3620, "Hisilicon Hi3620 (Flattened Device Tree)")
5654
.map_io = hi3620_map_io,
5755
.dt_compat = hi3xxx_compat,
58-
.smp = smp_ops(hi3xxx_smp_ops),
5956
MACHINE_END
6057

6158
static const char *hix5hd2_compat[] __initconst = {
@@ -65,5 +62,4 @@ static const char *hix5hd2_compat[] __initconst = {
6562

6663
DT_MACHINE_START(HIX5HD2_DT, "Hisilicon HIX5HD2 (Flattened Device Tree)")
6764
.dt_compat = hix5hd2_compat,
68-
.smp = smp_ops(hix5hd2_smp_ops),
6965
MACHINE_END

‎arch/arm/mach-hisi/platsmp.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,6 @@ struct smp_operations hix5hd2_smp_ops __initdata = {
131131
.cpu_die = hix5hd2_cpu_die,
132132
#endif
133133
};
134+
135+
CPU_METHOD_OF_DECLARE(hi3xxx_smp, "hisilicon,hi3620-smp", &hi3xxx_smp_ops);
136+
CPU_METHOD_OF_DECLARE(hix5hd2_smp, "hisilicon,hix5hd2-smp", &hix5hd2_smp_ops);

0 commit comments

Comments
 (0)