diff options
author | Anton Blanchard <anton@samba.org> | 2010-02-07 08:23:30 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-02-08 21:56:07 -0500 |
commit | a13672fb30b46eaf9fa50357e1e863de00631401 (patch) | |
tree | f06c3ef378b2c42b6f2fb0e5fa92af33bd136243 /arch/powerpc/include/asm/topology.h | |
parent | 7317ac87119dfb6fac36af4bcc64a25b62b5898d (diff) |
powerpc: Reformat SD_NODE_INIT to match x86
Clean up SD_NODE_INITS so we can easily compare it to x86. Similar to the
work in 47734f89be0614b5acbd6a532390f9c72f019648 (sched: Clean up topology.h)
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/topology.h')
-rw-r--r-- | arch/powerpc/include/asm/topology.h | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h index bbf89701d7a4..8eaec310a25b 100644 --- a/arch/powerpc/include/asm/topology.h +++ b/arch/powerpc/include/asm/topology.h | |||
@@ -38,27 +38,33 @@ static inline int pcibus_to_node(struct pci_bus *bus) | |||
38 | cpumask_of_node(pcibus_to_node(bus))) | 38 | cpumask_of_node(pcibus_to_node(bus))) |
39 | 39 | ||
40 | /* sched_domains SD_NODE_INIT for PPC64 machines */ | 40 | /* sched_domains SD_NODE_INIT for PPC64 machines */ |
41 | #define SD_NODE_INIT (struct sched_domain) { \ | 41 | #define SD_NODE_INIT (struct sched_domain) { \ |
42 | .parent = NULL, \ | 42 | .min_interval = 8, \ |
43 | .child = NULL, \ | 43 | .max_interval = 32, \ |
44 | .groups = NULL, \ | 44 | .busy_factor = 32, \ |
45 | .min_interval = 8, \ | 45 | .imbalance_pct = 125, \ |
46 | .max_interval = 32, \ | 46 | .cache_nice_tries = 1, \ |
47 | .busy_factor = 32, \ | 47 | .busy_idx = 3, \ |
48 | .imbalance_pct = 125, \ | 48 | .idle_idx = 1, \ |
49 | .cache_nice_tries = 1, \ | 49 | .newidle_idx = 0, \ |
50 | .busy_idx = 3, \ | 50 | .wake_idx = 0, \ |
51 | .idle_idx = 1, \ | 51 | .forkexec_idx = 0, \ |
52 | .newidle_idx = 0, \ | 52 | \ |
53 | .wake_idx = 0, \ | 53 | .flags = 1*SD_LOAD_BALANCE \ |
54 | .flags = SD_LOAD_BALANCE \ | 54 | | 1*SD_BALANCE_NEWIDLE \ |
55 | | SD_BALANCE_EXEC \ | 55 | | 1*SD_BALANCE_EXEC \ |
56 | | SD_BALANCE_FORK \ | 56 | | 1*SD_BALANCE_FORK \ |
57 | | SD_BALANCE_NEWIDLE \ | 57 | | 0*SD_BALANCE_WAKE \ |
58 | | SD_SERIALIZE, \ | 58 | | 0*SD_WAKE_AFFINE \ |
59 | .last_balance = jiffies, \ | 59 | | 0*SD_PREFER_LOCAL \ |
60 | .balance_interval = 1, \ | 60 | | 0*SD_SHARE_CPUPOWER \ |
61 | .nr_balance_failed = 0, \ | 61 | | 0*SD_POWERSAVINGS_BALANCE \ |
62 | | 0*SD_SHARE_PKG_RESOURCES \ | ||
63 | | 1*SD_SERIALIZE \ | ||
64 | | 0*SD_PREFER_SIBLING \ | ||
65 | , \ | ||
66 | .last_balance = jiffies, \ | ||
67 | .balance_interval = 1, \ | ||
62 | } | 68 | } |
63 | 69 | ||
64 | extern void __init dump_numa_cpu_topology(void); | 70 | extern void __init dump_numa_cpu_topology(void); |