diff options
Diffstat (limited to 'sys/mips/cavium/octe/ethernet.c')
-rw-r--r-- | sys/mips/cavium/octe/ethernet.c | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/sys/mips/cavium/octe/ethernet.c b/sys/mips/cavium/octe/ethernet.c index 24ff979..710336f 100644 --- a/sys/mips/cavium/octe/ethernet.c +++ b/sys/mips/cavium/octe/ethernet.c @@ -232,22 +232,18 @@ static void cvm_oct_configure_common_hw(device_t bus) #ifdef SMP - if (USE_MULTICORE_RECEIVE) { - critical_enter(); - { - cvmx_ciu_intx0_t en; - int core; - - CPU_FOREACH(core) { - if (core == PCPU_GET(cpuid)) - continue; - - en.u64 = cvmx_read_csr(CVMX_CIU_INTX_EN0(core*2)); - en.s.workq |= (1<<pow_receive_group); - cvmx_write_csr(CVMX_CIU_INTX_EN0(core*2), en.u64); - } + { + cvmx_ciu_intx0_t en; + int core; + + CPU_FOREACH(core) { + if (core == PCPU_GET(cpuid)) + continue; + + en.u64 = cvmx_read_csr(CVMX_CIU_INTX_EN0(core*2)); + en.s.workq |= (1<<pow_receive_group); + cvmx_write_csr(CVMX_CIU_INTX_EN0(core*2), en.u64); } - critical_exit(); } #endif } |