--- zzzz-none-000/linux-4.1.52/arch/mips/include/asm/cpu-info.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/arch/mips/include/asm/cpu-info.h 2022-03-02 11:37:12.000000000 +0000 @@ -94,7 +94,11 @@ } __attribute__((aligned(SMP_CACHE_BYTES))); extern struct cpuinfo_mips cpu_data[]; +#if defined(CONFIG_BCM_KF_CPU_DATA_CPUID) +#define current_cpu_data cpu_data[raw_smp_processor_id()] +#else #define current_cpu_data cpu_data[smp_processor_id()] +#endif #define raw_current_cpu_data cpu_data[raw_smp_processor_id()] #define boot_cpu_data cpu_data[0]