[PATCH] sched/fair: update_curr changed sum_exec_runtime to 1 when sum_exec_runtime is 0 beacuse some kernel code use sum_exec_runtime==0 to test task just be forked.

2019-08-26 Thread QiaoChong
From: Chong Qiao Such as: cpu_cgroup_attach> sched_move_task> task_change_group_fair> task_move_group_fair> detach_task_cfs_rq> vruntime_normalized> /* * When !on_rq, vruntime of the task has usually NOT been normalized. * But there are some cases where

Re:Re: Re: [PATCH] MIPS: KGDB: fix kgdb support for SMP platforms.

2019-03-27 Thread qiaochong
Hi Doug, I have changed name and signoff info format and resent patch just now. Thanks a lot. 在 2019-03-28 06:27:26,"Doug Anderson" 写道: >Hi, > >On Wed, Mar 27, 2019 at 3:25 PM qiaochong wrote: >> >> >> My name is QiaoChong, which is same to my username.

Re:Re: [PATCH] MIPS: KGDB: fix kgdb support for SMP platforms.

2019-03-27 Thread qiaochong
My name is QiaoChong, which is same to my username. Qiao is my family name. Thanks a lot. 在 2019-03-28 00:25:06,"Doug Anderson" 写道: >Hi, > >On Wed, Mar 27, 2019 at 8:06 AM qiaochong wrote: >> >> KGDB_call_nmi_hook is called by other cpu through smp call. >&

[PATCH] MIPS: KGDB: fix kgdb support for SMP platforms.

2019-03-27 Thread qiaochong
KGDB_call_nmi_hook is called by other cpu through smp call. MIPS smp call is processed in ipi irq handler and regs is saved in handle_int. So kgdb_call_nmi_hook get regs by get_irq_regs and regs will be passed to kgdb_cpu_enter. Signed-off-by: qiaochong --- arch/mips/kernel/kgdb.c | 3 ++- 1

[PATCH] MIPS: KGDB: fix kgdb support for SMP platforms.

2019-03-27 Thread qiaochong
KGDB_call_nmi_hook is called by other cpu through smp call. MIPS smp call is processed in ipi irq handler and regs is saved in handle_int. So kgdb_call_nmi_hook get regs by get_irq_regs and regs will be passed to kgdb_cpu_enter. Signed-off-by: qiaochong --- arch/mips/kernel/kgdb.c | 2 +- 1

[PATCH] parport_pc: fix find_superio io compare code, should use equal test.

2019-01-28 Thread qiaochong
From: QiaoChong Fixes: 181bf1e815a2a("parport_pc: clean up the modified while loops using for"). The code find_superio should test superio[i].io == p->base then find out superio, fix it. Signed-off-by: QiaoChong --- drivers/parport/parport_pc.c | 2 +- 1 file changed, 1 in

[PATCH] parport_pc: fix find_superio io compare code, should use equal test.

2019-01-22 Thread qiaochong
From: QiaoChong git blame drivers/parport/parport_pc.c 181bf1e815a2a (Alan Cox 2009-06-11 13:08:10 +0100 1376) static struct superio_struct *find_superio(struct parport *p) ^1da177e4c3f4 (Linus Torvalds2005-04-16 15:20:36 -0700 1377) { 181bf1e815a2a (Alan Cox