Re: [PATCH] sched: Add nr_running_cpu() to get current of running threads of each core

2013-05-13 Thread Chanwoo Choi
On 05/13/2013 05:59 PM, Peter Zijlstra wrote: > On Mon, May 13, 2013 at 05:33:12PM +0900, Chanwoo Choi wrote: >> This patch add nr_running_cpu() function to get current >> number of running threads of each core. >> > Uhm, not without a very good reason. > I am implementing the cpu hotplug policy f

Re: [PATCH] sched: Add nr_running_cpu() to get current of running threads of each core

2013-05-13 Thread Peter Zijlstra
On Mon, May 13, 2013 at 05:33:12PM +0900, Chanwoo Choi wrote: > This patch add nr_running_cpu() function to get current > number of running threads of each core. > Uhm, not without a very good reason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

[PATCH] sched: Add nr_running_cpu() to get current of running threads of each core

2013-05-13 Thread Chanwoo Choi
This patch add nr_running_cpu() function to get current number of running threads of each core. Signed-off-by: Chanwoo Choi --- include/linux/sched.h | 1 + kernel/sched/core.c | 8 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/linux/sched.h b/include/linux/sch