/* externally visible scheduler statistics: current number of runnable threads, current number of uninterruptible-sleeping threads, total number of context switches performed since bootup.  */
unsigned long nr_running(void)
/* externally visible scheduler statistics: current number of runnable threads, current number of uninterruptible-sleeping threads, total number of context switches performed since bootup.  */
unsigned long nr_running(void)
{
	unsigned long i, sum = 0;
	for_each_online_cpu(i)
		sum += cpu_rq(i)->nr_running;
	return sum;
}