[PATCH] ARM: perf: ensure the cpu is available to scheduler when set irq affinity

2015-10-21 Thread roy . qing . li
From: Li RongQing when there are 4 cpus, but only one is available to schedule, the warning will be generated when run the below command: # perf record -g -e cpu-clock -- find / -name "*.ko" CPU PMU: unable to set irq affinity (irq=28, cpu=1) CPU PMU: unable to set irq affinity

[PATCH] ARM: perf: ensure the cpu is available to scheduler when set irq affinity

2015-10-21 Thread roy . qing . li
From: Li RongQing when there are 4 cpus, but only one is available to schedule, the warning will be generated when run the below command: # perf record -g -e cpu-clock -- find / -name "*.ko" CPU PMU: unable to set irq affinity (irq=28, cpu=1) CPU PMU: unable

[RFC][PATCH] signal: replace !likely with unlikely!

2014-09-10 Thread roy . qing . li
From: Li RongQing !likely() is hard to be understood, and I do not know if compiler can optimise this condition, but unlikely(!()) is clear Signed-off-by: Li RongQing --- kernel/signal.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/signal.c b/kernel/signal.c

[RFC][PATCH] signal: replace !likely with unlikely!

2014-09-10 Thread roy . qing . li
From: Li RongQing roy.qing...@gmail.com !likely() is hard to be understood, and I do not know if compiler can optimise this condition, but unlikely(!()) is clear Signed-off-by: Li RongQing roy.qing...@gmail.com --- kernel/signal.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff