mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-01 08:20:44 -05:00
sched/core: Enable increased load resolution on 64-bit kernels
Mike ran into the low load resolution limitation on his big machine. So reenable these bits; nobody could ever reproduce/analyze the reported power usage claim and Google has been running with this for years as well. Reported-by: Mike Galbraith <[email protected]> Tested-by: Mike Galbraith <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
e7904a28f5
commit
2159197d66
1 changed files with 6 additions and 4 deletions
|
|
@ -49,11 +49,13 @@ static inline void cpu_load_update_active(struct rq *this_rq) { }
|
|||
* and does not change the user-interface for setting shares/weights.
|
||||
*
|
||||
* We increase resolution only if we have enough bits to allow this increased
|
||||
* resolution (i.e. BITS_PER_LONG > 32). The costs for increasing resolution
|
||||
* when BITS_PER_LONG <= 32 are pretty high and the returns do not justify the
|
||||
* increased costs.
|
||||
* resolution (i.e. 64bit). The costs for increasing resolution when 32bit are
|
||||
* pretty high and the returns do not justify the increased costs.
|
||||
*
|
||||
* Really only required when CONFIG_FAIR_GROUP_SCHED is also set, but to
|
||||
* increase coverage and consistency always enable it on 64bit platforms.
|
||||
*/
|
||||
#if 0 /* BITS_PER_LONG > 32 -- currently broken: it increases power usage under light load */
|
||||
#ifdef CONFIG_64BIT
|
||||
# define SCHED_LOAD_RESOLUTION 10
|
||||
# define scale_load(w) ((w) << SCHED_LOAD_RESOLUTION)
|
||||
# define scale_load_down(w) ((w) >> SCHED_LOAD_RESOLUTION)
|
||||
|
|
|
|||
Loading…
Reference in a new issue