ARC: [SMP] ISS SMP extension bitrot
* Move extension specific code out of common SMP code * Don't enable it by default for SMP Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
@@ -9,4 +9,4 @@
|
||||
KBUILD_CFLAGS += -Iarch/arc/plat-arcfpga/include
|
||||
|
||||
obj-y := platform.o irq.o
|
||||
obj-$(CONFIG_SMP) += smp.o
|
||||
obj-$(CONFIG_ISS_SMP_EXTN) += smp.o
|
||||
|
@@ -169,7 +169,7 @@ static void __init plat_fpga_early_init(void)
|
||||
|
||||
arc_fpga_serial_init();
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
#ifdef CONFIG_ISS_SMP_EXTN
|
||||
iss_model_init_early_smp();
|
||||
#endif
|
||||
}
|
||||
@@ -211,7 +211,7 @@ MACHINE_START(ANGEL4, "angel4")
|
||||
.init_early = plat_fpga_early_init,
|
||||
.init_machine = plat_fpga_populate_dev,
|
||||
.init_irq = plat_fpga_init_IRQ,
|
||||
#ifdef CONFIG_SMP
|
||||
#ifdef CONFIG_ISS_SMP_EXTN
|
||||
.init_smp = iss_model_init_smp,
|
||||
#endif
|
||||
MACHINE_END
|
||||
|
@@ -42,6 +42,24 @@ static void iss_model_smp_wakeup_cpu(int cpu, unsigned long pc)
|
||||
|
||||
}
|
||||
|
||||
static inline int get_hw_config_num_irq(void)
|
||||
{
|
||||
uint32_t val = read_aux_reg(ARC_REG_VECBASE_BCR);
|
||||
|
||||
switch (val & 0x03) {
|
||||
case 0:
|
||||
return 16;
|
||||
case 1:
|
||||
return 32;
|
||||
case 2:
|
||||
return 8;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Any SMP specific init any CPU does when it comes up.
|
||||
* Here we setup the CPU to enable Inter-Processor-Interrupts
|
||||
|
Reference in New Issue
Block a user