diff options
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/kernel/smp.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c index 4dcd7d0b60f2..40e40f968d61 100644 --- a/arch/sparc64/kernel/smp.c +++ b/arch/sparc64/kernel/smp.c | |||
@@ -1163,32 +1163,6 @@ int setup_profiling_timer(unsigned int multiplier) | |||
1163 | return -EINVAL; | 1163 | return -EINVAL; |
1164 | } | 1164 | } |
1165 | 1165 | ||
1166 | static void __init smp_tune_scheduling(void) | ||
1167 | { | ||
1168 | unsigned int smallest = ~0U; | ||
1169 | int i; | ||
1170 | |||
1171 | for (i = 0; i < NR_CPUS; i++) { | ||
1172 | unsigned int val = cpu_data(i).ecache_size; | ||
1173 | |||
1174 | if (val && val < smallest) | ||
1175 | smallest = val; | ||
1176 | } | ||
1177 | |||
1178 | /* Any value less than 256K is nonsense. */ | ||
1179 | if (smallest < (256U * 1024U)) | ||
1180 | smallest = 256 * 1024; | ||
1181 | |||
1182 | max_cache_size = smallest; | ||
1183 | |||
1184 | if (smallest < 1U * 1024U * 1024U) | ||
1185 | printk(KERN_INFO "Using max_cache_size of %uKB\n", | ||
1186 | smallest / 1024U); | ||
1187 | else | ||
1188 | printk(KERN_INFO "Using max_cache_size of %uMB\n", | ||
1189 | smallest / 1024U / 1024U); | ||
1190 | } | ||
1191 | |||
1192 | /* Constrain the number of cpus to max_cpus. */ | 1166 | /* Constrain the number of cpus to max_cpus. */ |
1193 | void __init smp_prepare_cpus(unsigned int max_cpus) | 1167 | void __init smp_prepare_cpus(unsigned int max_cpus) |
1194 | { | 1168 | { |
@@ -1206,7 +1180,6 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
1206 | } | 1180 | } |
1207 | 1181 | ||
1208 | cpu_data(boot_cpu_id).udelay_val = loops_per_jiffy; | 1182 | cpu_data(boot_cpu_id).udelay_val = loops_per_jiffy; |
1209 | smp_tune_scheduling(); | ||
1210 | } | 1183 | } |
1211 | 1184 | ||
1212 | void __devinit smp_prepare_boot_cpu(void) | 1185 | void __devinit smp_prepare_boot_cpu(void) |