]> git.baikalelectronics.ru Git - kernel.git/commit
sched: RT-balance, optimize
authorGregory Haskins <ghaskins@novell.com>
Fri, 25 Jan 2008 20:08:13 +0000 (21:08 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 25 Jan 2008 20:08:13 +0000 (21:08 +0100)
commit53a01d9c34e39371ac5f72a6c5a7e57b97731846
tree952ce91bf158cee7fc3df0553496be524bc38b78
parent4705d1eaabe40b203c3ee485e336bac193427457
sched: RT-balance, optimize

We can cheaply track the number of bits set in the cpumask for the lowest
priority CPUs.  Therefore, compute the mask's weight and use it to skip
the optimal domain search logic when there is only one CPU available.

Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_rt.c