]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sched: Update_cfs_shares at period edge
authorPaul Turner <pjt@google.com>
Thu, 4 Oct 2012 11:18:31 +0000 (13:18 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Oct 2012 08:27:29 +0000 (10:27 +0200)
commitf269ae0469fc882332bdfb5db15d3c1315fe2a10
treeaf5e130745392fa9fdd32f59b10272e269192b95
parent48a1675323fa1b7844e479ad2a4469f4558c0f79
sched: Update_cfs_shares at period edge

Now that our measurement intervals are small (~1ms) we can amortize the posting
of update_shares() to be about each period overflow.  This is a large cost
saving for frequently switching tasks.

Signed-off-by: Paul Turner <pjt@google.com>
Reviewed-by: Ben Segall <bsegall@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120823141507.200772172@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c