Skip to content

Commit 7fb6f7b

Browse files
committed
MIPS: Remove deprecated CONFIG_MIPS_CMP
Commit 5cac93b ("MIPS: Deprecate CONFIG_MIPS_CMP") deprecated CONFIG_MIPS_CMP and after 9 years it's time to remove it. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Acked-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent 045c340 commit 7fb6f7b

File tree

15 files changed

+3
-629
lines changed

15 files changed

+3
-629
lines changed

arch/mips/Kconfig

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ config MIPS_MALTA
568568
select SYS_SUPPORTS_LITTLE_ENDIAN
569569
select SYS_SUPPORTS_MICROMIPS
570570
select SYS_SUPPORTS_MIPS16
571-
select SYS_SUPPORTS_MIPS_CMP
572571
select SYS_SUPPORTS_MIPS_CPS
573572
select SYS_SUPPORTS_MULTITHREADING
574573
select SYS_SUPPORTS_RELOCATABLE
@@ -2270,15 +2269,10 @@ config MIPS_VPE_LOADER
22702269
Includes a loader for loading an elf relocatable object
22712270
onto another VPE and running it.
22722271

2273-
config MIPS_VPE_LOADER_CMP
2274-
bool
2275-
default "y"
2276-
depends on MIPS_VPE_LOADER && MIPS_CMP
2277-
22782272
config MIPS_VPE_LOADER_MT
22792273
bool
22802274
default "y"
2281-
depends on MIPS_VPE_LOADER && !MIPS_CMP
2275+
depends on MIPS_VPE_LOADER
22822276

22832277
config MIPS_VPE_LOADER_TOM
22842278
bool "Load VPE program into memory hidden from linux"
@@ -2294,31 +2288,10 @@ config MIPS_VPE_APSP_API
22942288
bool "Enable support for AP/SP API (RTLX)"
22952289
depends on MIPS_VPE_LOADER
22962290

2297-
config MIPS_VPE_APSP_API_CMP
2298-
bool
2299-
default "y"
2300-
depends on MIPS_VPE_APSP_API && MIPS_CMP
2301-
23022291
config MIPS_VPE_APSP_API_MT
23032292
bool
23042293
default "y"
2305-
depends on MIPS_VPE_APSP_API && !MIPS_CMP
2306-
2307-
config MIPS_CMP
2308-
bool "MIPS CMP framework support (DEPRECATED)"
2309-
depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6
2310-
select SMP
2311-
select SYNC_R4K
2312-
select SYS_SUPPORTS_SMP
2313-
select WEAK_ORDERING
2314-
default n
2315-
help
2316-
Select this if you are using a bootloader which implements the "CMP
2317-
framework" protocol (ie. YAMON) and want your kernel to make use of
2318-
its ability to start secondary CPUs.
2319-
2320-
Unless you have a specific need, you should use CONFIG_MIPS_CPS
2321-
instead of this.
2294+
depends on MIPS_VPE_APSP_API
23222295

23232296
config MIPS_CPS
23242297
bool "MIPS Coherent Processing System support"
@@ -2774,9 +2747,6 @@ config HOTPLUG_CPU
27742747
config SMP_UP
27752748
bool
27762749

2777-
config SYS_SUPPORTS_MIPS_CMP
2778-
bool
2779-
27802750
config SYS_SUPPORTS_MIPS_CPS
27812751
bool
27822752

arch/mips/include/asm/rtlx.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ struct rtlx_channel {
8181
extern struct rtlx_info {
8282
unsigned long id;
8383
enum rtlx_state state;
84-
int ap_int_pending; /* Status of 0 or 1 for CONFIG_MIPS_CMP only */
8584

8685
struct rtlx_channel channel[RTLX_CHANNELS];
8786
} *rtlx;

arch/mips/include/asm/smp-ops.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,6 @@ static inline int register_up_smp_ops(void)
8080
#endif
8181
}
8282

83-
static inline int register_cmp_smp_ops(void)
84-
{
85-
#ifdef CONFIG_MIPS_CMP
86-
extern const struct plat_smp_ops cmp_smp_ops;
87-
88-
if (!mips_cm_present())
89-
return -ENODEV;
90-
91-
register_smp_ops(&cmp_smp_ops);
92-
93-
return 0;
94-
#else
95-
return -ENODEV;
96-
#endif
97-
}
98-
9983
static inline int register_vsmp_smp_ops(void)
10084
{
10185
#ifdef CONFIG_MIPS_MT_SMP

arch/mips/include/asm/vpe.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,8 @@
2929

3030
static inline int aprp_cpu_index(void)
3131
{
32-
#ifdef CONFIG_MIPS_CMP
33-
return setup_max_cpus;
34-
#else
3532
extern int tclimit;
3633
return tclimit;
37-
#endif
3834
}
3935

4036
enum vpe_state {

arch/mips/kernel/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,13 @@ obj-$(CONFIG_CPU_BMIPS) += smp-bmips.o bmips_vec.o bmips_5xxx_init.o
5858
obj-$(CONFIG_MIPS_MT) += mips-mt.o
5959
obj-$(CONFIG_MIPS_MT_FPAFF) += mips-mt-fpaff.o
6060
obj-$(CONFIG_MIPS_MT_SMP) += smp-mt.o
61-
obj-$(CONFIG_MIPS_CMP) += smp-cmp.o
6261
obj-$(CONFIG_MIPS_CPS) += smp-cps.o cps-vec.o
6362
obj-$(CONFIG_MIPS_CPS_NS16550) += cps-vec-ns16550.o
6463
obj-$(CONFIG_MIPS_SPRAM) += spram.o
6564

6665
obj-$(CONFIG_MIPS_VPE_LOADER) += vpe.o
67-
obj-$(CONFIG_MIPS_VPE_LOADER_CMP) += vpe-cmp.o
6866
obj-$(CONFIG_MIPS_VPE_LOADER_MT) += vpe-mt.o
6967
obj-$(CONFIG_MIPS_VPE_APSP_API) += rtlx.o
70-
obj-$(CONFIG_MIPS_VPE_APSP_API_CMP) += rtlx-cmp.o
7168
obj-$(CONFIG_MIPS_VPE_APSP_API_MT) += rtlx-mt.o
7269

7370
obj-$(CONFIG_MIPS_MSC) += irq-msc01.o

arch/mips/kernel/rtlx-cmp.c

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)