--- zzzz-none-000/linux-4.1.38/arch/mips/include/asm/cpu-info.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/arch/mips/include/asm/cpu-info.h 2020-11-25 10:06:48.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]