diff options
author | Kirill Tkhai <[email protected]> | 2012-04-11 09:06:04 +0400 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2012-04-12 16:59:37 -0400 |
commit | 8d3d5ada56a692d36a9d55858881147ec10cfeb6 (patch) | |
tree | ec5d41a8d596f247afb261d02d47485586098bdb /drivers/scsi/mpt3sas/mpi/mpi2_raid.h | |
parent | 600e145882802d6ccbfe2c4aea243d97caeb91a9 (diff) |
sched_rt: Avoid unnecessary dequeue and enqueue of pushable tasks in set_cpus_allowed_rt()
Migration status depends on a difference of weight from 0 and 1.
If weight > 1 (<= 1) and old weight <= 1 (> 1) then task becomes
pushable (or not pushable). We are not insterested in its exact
values, is it 3 or 4, for example.
Now if we are changing affinity from a set of 3 cpus to a set of 4, the-
task will be dequeued and enqueued sequentially without important
difference in comparison with initial state. The only difference is in
internal representation of plist queue of pushable tasks and the fact
that the task may won't be the first in a sequence of the same priority
tasks. But it seems to me it gives nothing.
Link: http://lkml.kernel.org/r/[email protected]
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Tkhai Kirill <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions