sched: Reduce forkexec_idx
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 15 Sep 2009 13:22:03 +0000 (15:22 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 15 Sep 2009 14:51:23 +0000 (16:51 +0200)
If we're looking to place a new task, we might as well find the
idlest position _now_, not 1 tick ago.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/ia64/include/asm/topology.h
arch/sh/include/asm/topology.h
arch/sparc/include/asm/topology_64.h
arch/x86/include/asm/topology.h
include/linux/topology.h

index 42f1673ec83f59075174ce6b7c40b4e432c674d5..569b9dafc78ccea972036c2ca2d304420593177b 100644 (file)
@@ -63,7 +63,7 @@ void build_cpu_to_node_map(void);
        .idle_idx               = 1,                    \
        .newidle_idx            = 0,                    \
        .wake_idx               = 0,                    \
-       .forkexec_idx           = 1,                    \
+       .forkexec_idx           = 0,                    \
        .flags                  = SD_LOAD_BALANCE       \
                                | SD_BALANCE_NEWIDLE    \
                                | SD_BALANCE_EXEC       \
@@ -89,7 +89,7 @@ void build_cpu_to_node_map(void);
        .idle_idx               = 2,                    \
        .newidle_idx            = 0,                    \
        .wake_idx               = 0,                    \
-       .forkexec_idx           = 1,                    \
+       .forkexec_idx           = 0,                    \
        .flags                  = SD_LOAD_BALANCE       \
                                | SD_BALANCE_NEWIDLE    \
                                | SD_BALANCE_EXEC       \
index c8436771e31dfc44dea9ba1233b6ecd67c188b57..a8cc564b703d2a6dd15c3b5b86204b4d5e61b7d2 100644 (file)
@@ -17,7 +17,7 @@
        .idle_idx               = 2,                    \
        .newidle_idx            = 0,                    \
        .wake_idx               = 0,                    \
-       .forkexec_idx           = 1,                    \
+       .forkexec_idx           = 0,                    \
        .flags                  = SD_LOAD_BALANCE       \
                                | SD_BALANCE_FORK       \
                                | SD_BALANCE_EXEC       \
index bc3a0930ed643f57f999c9595c692dc9d5313aed..10b979d1de20ffe89a77873298ec9986b74b932f 100644 (file)
@@ -53,7 +53,7 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
        .idle_idx               = 2,                    \
        .newidle_idx            = 0,                    \
        .wake_idx               = 0,                    \
-       .forkexec_idx           = 1,                    \
+       .forkexec_idx           = 0,                    \
        .flags                  = SD_LOAD_BALANCE       \
                                | SD_BALANCE_FORK       \
                                | SD_BALANCE_EXEC       \
index 7fafd1bc41494cfc50893cf6ac479b438fd425b5..589f12383d781fea792a33ceca33ce0b8c034361 100644 (file)
@@ -116,13 +116,11 @@ extern unsigned long node_remap_size[];
 
 # define SD_CACHE_NICE_TRIES   1
 # define SD_IDLE_IDX           1
-# define SD_FORKEXEC_IDX       0
 
 #else
 
 # define SD_CACHE_NICE_TRIES   2
 # define SD_IDLE_IDX           2
-# define SD_FORKEXEC_IDX       1
 
 #endif
 
@@ -137,7 +135,7 @@ extern unsigned long node_remap_size[];
        .idle_idx               = SD_IDLE_IDX,                          \
        .newidle_idx            = 0,                                    \
        .wake_idx               = 0,                                    \
-       .forkexec_idx           = SD_FORKEXEC_IDX,                      \
+       .forkexec_idx           = 0,                                    \
                                                                        \
        .flags                  = 1*SD_LOAD_BALANCE                     \
                                | 1*SD_BALANCE_NEWIDLE                  \
index 4298745615a5e2b81239e3b025b8a8bdbf387737..936ab2b3768356c6e6e909a5bae65ca5730a1181 100644 (file)
@@ -121,7 +121,7 @@ int arch_update_cpu_topology(void);
        .cache_nice_tries       = 1,                                    \
        .busy_idx               = 2,                                    \
        .wake_idx               = 0,                                    \
-       .forkexec_idx           = 1,                                    \
+       .forkexec_idx           = 0,                                    \
                                                                        \
        .flags                  = 1*SD_LOAD_BALANCE                     \
                                | 1*SD_BALANCE_NEWIDLE                  \
@@ -153,7 +153,7 @@ int arch_update_cpu_topology(void);
        .idle_idx               = 1,                                    \
        .newidle_idx            = 0,                                    \
        .wake_idx               = 0,                                    \
-       .forkexec_idx           = 1,                                    \
+       .forkexec_idx           = 0,                                    \
                                                                        \
        .flags                  = 1*SD_LOAD_BALANCE                     \
                                | 1*SD_BALANCE_NEWIDLE                  \