android_kernel_xiaomi_sm8350/arch
Peter Zijlstra c88d591089 sched: Merge select_task_rq_fair() and sched_balance_self()
The problem with wake_idle() is that is doesn't respect things like
cpu_power, which means it doesn't deal well with SMT nor the recent
RT interaction.

To cure this, it needs to do what sched_balance_self() does, which
leads to the possibility of merging select_task_rq_fair() and
sched_balance_self().

Modify sched_balance_self() to:

  - update_shares() when walking up the domain tree,
    (it only called it for the top domain, but it should
     have done this anyway), which allows us to remove
    this ugly bit from try_to_wake_up().

  - do wake_affine() on the smallest domain that contains
    both this (the waking) and the prev (the wakee) cpu for
    WAKE invocations.

Then use the top-down balance steps it had to replace wake_idle().

This leads to the dissapearance of SD_WAKE_BALANCE and
SD_WAKE_IDLE_FAR, with SD_WAKE_IDLE replaced with SD_BALANCE_WAKE.

SD_WAKE_AFFINE needs SD_BALANCE_WAKE to be effective.

Touch all topology bits to replace the old with new SD flags --
platforms might need re-tuning, enabling SD_BALANCE_WAKE
conditionally on a NUMA distance seems like a good additional
feature, magny-core and small nehalem systems would want this
enabled, systems with slow interconnects would not.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-09-15 16:01:05 +02:00
..
alpha KEYS: Add missing linux/tracehook.h #inclusions 2009-09-09 18:30:02 +10:00
arm Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 2009-09-11 09:19:35 -07:00
avr32 Merge branch 'next' into for-linus 2009-09-11 08:04:49 +10:00
blackfin blackfin: fix wrong CTS inversion 2009-07-20 16:38:44 -07:00
cris KEYS: Add missing linux/tracehook.h #inclusions 2009-09-09 18:30:02 +10:00
frv KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] 2009-09-02 21:29:22 +10:00
h8300 KEYS: Add missing linux/tracehook.h #inclusions 2009-09-09 18:30:02 +10:00
ia64 sched: Merge select_task_rq_fair() and sched_balance_self() 2009-09-15 16:01:05 +02:00
m32r KEYS: Add missing linux/tracehook.h #inclusions 2009-09-09 18:30:02 +10:00
m68k locking, m68k/asm-offsets: Rename signal defines 2009-09-01 09:38:03 +02:00
m68knommu m68k,m68knommu: Wire up rt_tgsigqueueinfo and perf_counter_open 2009-08-26 23:14:50 +02:00
microblaze microblaze: Update Microblaze defconfigs 2009-08-18 11:05:11 +02:00
mips sched: Merge select_task_rq_fair() and sched_balance_self() 2009-09-15 16:01:05 +02:00
mn10300 KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] 2009-09-02 21:29:22 +10:00
parisc Merge branch 'next' into for-linus 2009-09-11 08:04:49 +10:00
powerpc sched: Merge select_task_rq_fair() and sched_balance_self() 2009-09-15 16:01:05 +02:00
s390 Merge branch 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2009-09-11 13:24:03 -07:00
sh sched: Merge select_task_rq_fair() and sched_balance_self() 2009-09-15 16:01:05 +02:00
sparc sched: Merge select_task_rq_fair() and sched_balance_self() 2009-09-15 16:01:05 +02:00
um mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() 2009-07-27 12:10:38 -07:00
x86 sched: Merge select_task_rq_fair() and sched_balance_self() 2009-09-15 16:01:05 +02:00
xtensa mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() 2009-07-27 12:10:38 -07:00
.gitignore
Kconfig oprofile: Implement performance counter multiplexing 2009-07-20 16:33:53 +02:00