Patch for solving Kernel Panic - not syncing napi_cpu nr_cpu_ids file dhd_linux_lb.c, line 214
Inside dhd_linux_lb.c
if ((primary_available_cpus == 0) &&
(secondary_available_cpus == 0)) {
/* No CPUs available from primary or secondary mask */
napi_cpu = 1;
compl_cpu = 0;
tx_cpu = 2;
+ if (tx_cpu >= nr_cpu_ids)
+ tx_cpu = 0;
+ if (napi_cpu >= nr_cpu_ids)
+ napi_cpu = 0;
}
|