summaryrefslogtreecommitdiffstats
path: root/kernel
Commit message (Collapse)AuthorAgeFilesLines
...
| * sched: optimize activate_task()Ingo Molnar2007-08-091-10/+9
| | | | | | | | | | | | | | | | optimize activate_task() by removing update_rq_clock() from it. (and add update_rq_clock() to all callsites of activate_task() that did not have it before.) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: clean up set_curr_task_fair()Ingo Molnar2007-08-091-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | clean up set_curr_task_fair(). ( identity transformation that causes no change in functionality. ) text data bss dec hex filename 39170 3750 36 42956 a7cc sched.o.before 39170 3750 36 42956 a7cc sched.o.after Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove __update_rq_clock() call from entity_tick()Ingo Molnar2007-08-091-3/+0
| | | | | | | | | | | | | | | | | | remove __update_rq_clock() call from entity_tick(). no change in functionality because scheduler_tick() already calls __update_rq_clock(). Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: move the __update_rq_clock() call to scheduler_tick()Ingo Molnar2007-08-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | move the __update_rq_clock() call from update_cpu_load() to scheduler_tick(). ( identity transformation that causes no change in functionality. ) this allows the direct use of rq->clock in ->task_tick() functions. Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched debug: remove the 'u64 now' parameter from print_task()/_rq()Ingo Molnar2007-08-091-6/+6
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from sched_debug.c:print_task()/_rq(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' local variablesIngo Molnar2007-08-092-22/+0
| | | | | | | | | | | | | | | | final step: remove all (now superfluous) 'u64 now' variables. ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from deactivate_task()Ingo Molnar2007-08-091-8/+7
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from deactivate_task(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from dequeue_task()Ingo Molnar2007-08-091-5/+4
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from dequeue_task(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from enqueue_task()Ingo Molnar2007-08-091-6/+5
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from enqueue_task(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from dec_nr_running()Ingo Molnar2007-08-091-2/+2
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from dec_nr_running(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from inc_nr_running()Ingo Molnar2007-08-091-4/+4
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from inc_nr_running(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from dec_load()Ingo Molnar2007-08-091-4/+3
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from dec_load(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from inc_load()Ingo Molnar2007-08-091-4/+3
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from inc_load(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from update_curr_load()Ingo Molnar2007-08-091-4/+4
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from update_curr_load(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from ->task_new()Ingo Molnar2007-08-092-2/+2
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from ->task_new(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from ->put_prev_task()Ingo Molnar2007-08-094-4/+4
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from ->put_prev_task(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from pick_next_task()Ingo Molnar2007-08-091-3/+3
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from pick_next_task(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from ->pick_next_task()Ingo Molnar2007-08-094-5/+5
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from ->pick_next_task(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from ->dequeue_task()Ingo Molnar2007-08-094-6/+4
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from ->dequeue_task(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from ->enqueue_task()Ingo Molnar2007-08-093-5/+3
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from ->enqueue_task(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from update_curr_rt()Ingo Molnar2007-08-091-3/+3
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from update_curr_rt(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from put_prev_entity()Ingo Molnar2007-08-091-3/+2
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from put_prev_entity(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from pick_next_entity()Ingo Molnar2007-08-091-2/+2
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from pick_next_entity(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from set_next_entity()Ingo Molnar2007-08-091-3/+3
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from set_next_entity(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from dequeue_entity()Ingo Molnar2007-08-091-5/+4
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from dequeue_entity(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from enqueue_entity()Ingo Molnar2007-08-091-5/+4
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from enqueue_entity(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from enqueue_sleeper()Ingo Molnar2007-08-091-3/+2
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from enqueue_sleeper(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from __enqueue_sleeper()Ingo Molnar2007-08-091-3/+2
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from __enqueue_sleeper(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from update_stats_curr_end()Ingo Molnar2007-08-091-2/+2
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from update_stats_curr_end(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from update_stats_dequeue()Ingo Molnar2007-08-091-2/+2
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from update_stats_dequeue(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from update_stats_curr_start()Ingo Molnar2007-08-091-2/+2
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from update_stats_curr_start(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from update_stats_wait_end()Ingo Molnar2007-08-091-3/+3
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from update_stats_wait_end(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from __update_stats_wait_end()Ingo Molnar2007-08-091-2/+2
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from __update_stats_wait_end(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from update_stats_enqueue()Ingo Molnar2007-08-091-4/+3
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from update_stats_enqueue(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from update_stats_wait_start()Ingo Molnar2007-08-091-3/+3
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from update_stats_wait_start(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from update_curr()Ingo Molnar2007-08-091-7/+7
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from update_curr(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove the 'u64 now' parameter from print_cfs_rq()Ingo Molnar2007-08-092-4/+4
| | | | | | | | | | | | | | | | remove the 'u64 now' parameter from print_cfs_rq(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove 'now' use from assignmentsIngo Molnar2007-08-093-16/+17
| | | | | | | | | | | | | | | | | | | | change all 'now' timestamp uses in assignments to rq->clock. ( this is an identity transformation that causes no functionality change: all such new rq->clock is necessarily preceded by an update_rq_clock() call. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove __rq_clock()Ingo Molnar2007-08-091-7/+0
| | | | | | | | | | | | remove the (now unused) __rq_clock() function. Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: eliminate __rq_clock() useIngo Molnar2007-08-092-4/+13
| | | | | | | | | | | | | | | | | | | | | | eliminate __rq_clock() use by changing it to: __update_rq_clock(rq) now = rq->clock; identity transformation - no change in behavior. Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove rq_clock()Ingo Molnar2007-08-091-6/+0
| | | | | | | | | | | | remove the now unused rq_clock() function. Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: eliminate rq_clock() useIngo Molnar2007-08-092-17/+40
| | | | | | | | | | | | | | | | | | | | | | eliminate rq_clock() use by changing it to: update_rq_clock(rq) now = rq->clock; identity transformation - no change in behavior. Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: add [__]update_rq_clock(rq)Ingo Molnar2007-08-091-8/+22
| | | | | | | | | | | | | | | | add the [__]update_rq_clock(rq) functions. (No change in functionality, just reorganization to prepare for elimination of the heavy 64-bit timestamp-passing in the scheduler.) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: fix bug in balance_tasks()Peter Williams2007-08-094-53/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two problems with balance_tasks() and how it used: 1. The variables best_prio and best_prio_seen (inherited from the old move_tasks()) were only required to handle problems caused by the active/expired arrays, the order in which they were processed and the possibility that the task with the highest priority could be on either. These issues are no longer present and the extra overhead associated with their use is unnecessary (and possibly wrong). 2. In the absence of CONFIG_FAIR_GROUP_SCHED being set, the same this_best_prio variable needs to be used by all scheduling classes or there is a risk of moving too much load. E.g. if the highest priority task on this at the beginning is a fairly low priority task and the rt class migrates a task (during its turn) then that moved task becomes the new highest priority task on this_rq but when the sched_fair class initializes its copy of this_best_prio it will get the priority of the original highest priority task as, due to the run queue locks being held, the reschedule triggered by pull_task() will not have taken place. This could result in inappropriate overriding of skip_for_load and excessive load being moved. The attached patch addresses these problems by deleting all reference to best_prio and best_prio_seen and making this_best_prio a reference parameter to the various functions involved. load_balance_fair() has also been modified so that this_best_prio is only reset (in the loop) if CONFIG_FAIR_GROUP_SCHED is set. This should preserve the effect of helping spread groups' higher priority tasks around the available CPUs while improving system performance when CONFIG_FAIR_GROUP_SCHED isn't set. Signed-off-by: Peter Williams <pwil3058@bigpond.net.au> Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: remove binary sysctls from kernel.sched_domainAlexey Dobriyan2007-08-091-17/+21
| | | | | | | | | | | | | | | | | | kernel.sched_domain hierarchy is under CTL_UNNUMBERED and thus unreachable to sysctl(2). Generating .ctl_number's in such situation is not useful. Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: delta_exec accounting fixIngo Molnar2007-08-091-3/+3
| | | | | | | | | | | | | | small delta_exec accounting fix: increase delta_exec and increase sum_exec_runtime even if the task is not on the runqueue anymore. Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: clean up delta_mineIngo Molnar2007-08-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | cleanup: delta_mine is an unsigned value. no code impact: text data bss dec hex filename 27823 2726 16 30565 7765 sched.o.before 27823 2726 16 30565 7765 sched.o.after Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: schedule() speedupIngo Molnar2007-08-091-10/+9
| | | | | | | | | | | | | | | | | | | | speed up schedule(): share the 'now' parameter that deactivate_task() was calculating internally. ( this also fixes the small accounting window between the deactivate call and the pick_next_task() call. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: uninline rq_clock()Ingo Molnar2007-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | uninline rq_clock() to save 263 bytes of code: text data bss dec hex filename 39561 3642 24 43227 a8db sched.o.before 39298 3642 24 42964 a7d4 sched.o.after Signed-off-by: Ingo Molnar <mingo@elte.hu>
| * sched: mark print_cfs_stats staticJosh Triplett2007-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | sched_fair.c defines print_cfs_stats, and sched_debug.c uses it, but sched.c includes both sched_fair.c and sched_debug.c, so all the references to print_cfs_stats occur in the same compilation unit. Thus, mark print_cfs_stats static. Eliminates a sparse warning: warning: symbol 'print_cfs_stats' was not declared. Should it be static? Signed-off-by: Josh Triplett <josh@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
OpenPOWER on IntegriCloud