diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-08-29 16:12:36 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-29 16:12:36 -0400 |
commit | 2fca877b68b2b4fc5b94277858a1bedd46017cde (patch) | |
tree | fd02725406299ba2f26354463b3c261721e9eb6b /include/asm-ia64/topology.h | |
parent | ff40c6d3d1437ecdf295b8e39adcb06c3d6021ef (diff) | |
parent | 02b3e4e2d71b6058ec11cc01c72ac651eb3ded2b (diff) |
/spare/repo/libata-dev branch 'v2.6.13'
Diffstat (limited to 'include/asm-ia64/topology.h')
-rw-r--r-- | include/asm-ia64/topology.h | 66 |
1 files changed, 52 insertions, 14 deletions
diff --git a/include/asm-ia64/topology.h b/include/asm-ia64/topology.h index 21cf351fd05c..399bc29729fd 100644 --- a/include/asm-ia64/topology.h +++ b/include/asm-ia64/topology.h | |||
@@ -40,27 +40,61 @@ | |||
40 | */ | 40 | */ |
41 | #define node_to_first_cpu(node) (__ffs(node_to_cpumask(node))) | 41 | #define node_to_first_cpu(node) (__ffs(node_to_cpumask(node))) |
42 | 42 | ||
43 | /* | ||
44 | * Determines the node for a given pci bus | ||
45 | */ | ||
46 | #define pcibus_to_node(bus) PCI_CONTROLLER(bus)->node | ||
47 | |||
43 | void build_cpu_to_node_map(void); | 48 | void build_cpu_to_node_map(void); |
44 | 49 | ||
50 | #define SD_CPU_INIT (struct sched_domain) { \ | ||
51 | .span = CPU_MASK_NONE, \ | ||
52 | .parent = NULL, \ | ||
53 | .groups = NULL, \ | ||
54 | .min_interval = 1, \ | ||
55 | .max_interval = 4, \ | ||
56 | .busy_factor = 64, \ | ||
57 | .imbalance_pct = 125, \ | ||
58 | .cache_hot_time = (10*1000000), \ | ||
59 | .per_cpu_gain = 100, \ | ||
60 | .cache_nice_tries = 2, \ | ||
61 | .busy_idx = 2, \ | ||
62 | .idle_idx = 1, \ | ||
63 | .newidle_idx = 2, \ | ||
64 | .wake_idx = 1, \ | ||
65 | .forkexec_idx = 1, \ | ||
66 | .flags = SD_LOAD_BALANCE \ | ||
67 | | SD_BALANCE_NEWIDLE \ | ||
68 | | SD_BALANCE_EXEC \ | ||
69 | | SD_WAKE_AFFINE, \ | ||
70 | .last_balance = jiffies, \ | ||
71 | .balance_interval = 1, \ | ||
72 | .nr_balance_failed = 0, \ | ||
73 | } | ||
74 | |||
45 | /* sched_domains SD_NODE_INIT for IA64 NUMA machines */ | 75 | /* sched_domains SD_NODE_INIT for IA64 NUMA machines */ |
46 | #define SD_NODE_INIT (struct sched_domain) { \ | 76 | #define SD_NODE_INIT (struct sched_domain) { \ |
47 | .span = CPU_MASK_NONE, \ | 77 | .span = CPU_MASK_NONE, \ |
48 | .parent = NULL, \ | 78 | .parent = NULL, \ |
49 | .groups = NULL, \ | 79 | .groups = NULL, \ |
50 | .min_interval = 80, \ | 80 | .min_interval = 8, \ |
51 | .max_interval = 320, \ | 81 | .max_interval = 8*(min(num_online_cpus(), 32)), \ |
52 | .busy_factor = 320, \ | 82 | .busy_factor = 64, \ |
53 | .imbalance_pct = 125, \ | 83 | .imbalance_pct = 125, \ |
54 | .cache_hot_time = (10*1000000), \ | 84 | .cache_hot_time = (10*1000000), \ |
55 | .cache_nice_tries = 1, \ | 85 | .cache_nice_tries = 2, \ |
86 | .busy_idx = 3, \ | ||
87 | .idle_idx = 2, \ | ||
88 | .newidle_idx = 0, /* unused */ \ | ||
89 | .wake_idx = 1, \ | ||
90 | .forkexec_idx = 1, \ | ||
56 | .per_cpu_gain = 100, \ | 91 | .per_cpu_gain = 100, \ |
57 | .flags = SD_LOAD_BALANCE \ | 92 | .flags = SD_LOAD_BALANCE \ |
58 | | SD_BALANCE_EXEC \ | 93 | | SD_BALANCE_EXEC \ |
59 | | SD_BALANCE_NEWIDLE \ | 94 | | SD_BALANCE_FORK \ |
60 | | SD_WAKE_IDLE \ | ||
61 | | SD_WAKE_BALANCE, \ | 95 | | SD_WAKE_BALANCE, \ |
62 | .last_balance = jiffies, \ | 96 | .last_balance = jiffies, \ |
63 | .balance_interval = 1, \ | 97 | .balance_interval = 64, \ |
64 | .nr_balance_failed = 0, \ | 98 | .nr_balance_failed = 0, \ |
65 | } | 99 | } |
66 | 100 | ||
@@ -69,17 +103,21 @@ void build_cpu_to_node_map(void); | |||
69 | .span = CPU_MASK_NONE, \ | 103 | .span = CPU_MASK_NONE, \ |
70 | .parent = NULL, \ | 104 | .parent = NULL, \ |
71 | .groups = NULL, \ | 105 | .groups = NULL, \ |
72 | .min_interval = 80, \ | 106 | .min_interval = 64, \ |
73 | .max_interval = 320, \ | 107 | .max_interval = 64*num_online_cpus(), \ |
74 | .busy_factor = 320, \ | 108 | .busy_factor = 128, \ |
75 | .imbalance_pct = 125, \ | 109 | .imbalance_pct = 133, \ |
76 | .cache_hot_time = (10*1000000), \ | 110 | .cache_hot_time = (10*1000000), \ |
77 | .cache_nice_tries = 1, \ | 111 | .cache_nice_tries = 1, \ |
112 | .busy_idx = 3, \ | ||
113 | .idle_idx = 3, \ | ||
114 | .newidle_idx = 0, /* unused */ \ | ||
115 | .wake_idx = 0, /* unused */ \ | ||
116 | .forkexec_idx = 0, /* unused */ \ | ||
78 | .per_cpu_gain = 100, \ | 117 | .per_cpu_gain = 100, \ |
79 | .flags = SD_LOAD_BALANCE \ | 118 | .flags = SD_LOAD_BALANCE, \ |
80 | | SD_BALANCE_EXEC, \ | ||
81 | .last_balance = jiffies, \ | 119 | .last_balance = jiffies, \ |
82 | .balance_interval = 100*(63+num_online_cpus())/64, \ | 120 | .balance_interval = 64, \ |
83 | .nr_balance_failed = 0, \ | 121 | .nr_balance_failed = 0, \ |
84 | } | 122 | } |
85 | 123 | ||