Commit a13672fb authored by Anton Blanchard's avatar Anton Blanchard Committed by Benjamin Herrenschmidt

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 47734f89 (sched: Clean up topology.h)
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 7317ac87
...@@ -38,27 +38,33 @@ static inline int pcibus_to_node(struct pci_bus *bus) ...@@ -38,27 +38,33 @@ static inline int pcibus_to_node(struct pci_bus *bus)
cpumask_of_node(pcibus_to_node(bus))) cpumask_of_node(pcibus_to_node(bus)))
/* sched_domains SD_NODE_INIT for PPC64 machines */ /* sched_domains SD_NODE_INIT for PPC64 machines */
#define SD_NODE_INIT (struct sched_domain) { \ #define SD_NODE_INIT (struct sched_domain) { \
.parent = NULL, \ .min_interval = 8, \
.child = NULL, \ .max_interval = 32, \
.groups = NULL, \ .busy_factor = 32, \
.min_interval = 8, \ .imbalance_pct = 125, \
.max_interval = 32, \ .cache_nice_tries = 1, \
.busy_factor = 32, \ .busy_idx = 3, \
.imbalance_pct = 125, \ .idle_idx = 1, \
.cache_nice_tries = 1, \ .newidle_idx = 0, \
.busy_idx = 3, \ .wake_idx = 0, \
.idle_idx = 1, \ .forkexec_idx = 0, \
.newidle_idx = 0, \ \
.wake_idx = 0, \ .flags = 1*SD_LOAD_BALANCE \
.flags = SD_LOAD_BALANCE \ | 1*SD_BALANCE_NEWIDLE \
| SD_BALANCE_EXEC \ | 1*SD_BALANCE_EXEC \
| SD_BALANCE_FORK \ | 1*SD_BALANCE_FORK \
| SD_BALANCE_NEWIDLE \ | 0*SD_BALANCE_WAKE \
| SD_SERIALIZE, \ | 0*SD_WAKE_AFFINE \
.last_balance = jiffies, \ | 0*SD_PREFER_LOCAL \
.balance_interval = 1, \ | 0*SD_SHARE_CPUPOWER \
.nr_balance_failed = 0, \ | 0*SD_POWERSAVINGS_BALANCE \
| 0*SD_SHARE_PKG_RESOURCES \
| 1*SD_SERIALIZE \
| 0*SD_PREFER_SIBLING \
, \
.last_balance = jiffies, \
.balance_interval = 1, \
} }
extern void __init dump_numa_cpu_topology(void); extern void __init dump_numa_cpu_topology(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment