Re: [PATCH] MIPS: Do not use smp_processor_id() in preemptible code

2020-07-05 Thread Thomas Bogendoerfer
On Fri, Jul 03, 2020 at 12:11:58PM +0800, Xingxing Su wrote: > Use preempt_disable() to fix the following bug under CONFIG_DEBUG_PREEMPT. > > [ 21.915305] BUG: using smp_processor_id() in preemptible [] code: > qemu-system-mip/1056 > [ 21.923996] caller is do_ri+0x1d4/0x690 > [

[PATCH] MIPS: Do not use smp_processor_id() in preemptible code

2020-07-02 Thread Xingxing Su
Use preempt_disable() to fix the following bug under CONFIG_DEBUG_PREEMPT. [ 21.915305] BUG: using smp_processor_id() in preemptible [] code: qemu-system-mip/1056 [ 21.923996] caller is do_ri+0x1d4/0x690 [ 21.927921] CPU: 0 PID: 1056 Comm: qemu-system-mip Not tainted 5.8.0-rc2 #3 [