diff options
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index a157a5245923..02427d1003d3 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -228,6 +228,26 @@ void __init smp_alloc_memory(void) | |||
228 | } | 228 | } |
229 | #endif | 229 | #endif |
230 | 230 | ||
231 | void impress_friends(void) | ||
232 | { | ||
233 | int cpu; | ||
234 | unsigned long bogosum = 0; | ||
235 | /* | ||
236 | * Allow the user to impress friends. | ||
237 | */ | ||
238 | Dprintk("Before bogomips.\n"); | ||
239 | for_each_possible_cpu(cpu) | ||
240 | if (cpu_isset(cpu, cpu_callout_map)) | ||
241 | bogosum += cpu_data(cpu).loops_per_jiffy; | ||
242 | printk(KERN_INFO | ||
243 | "Total of %d processors activated (%lu.%02lu BogoMIPS).\n", | ||
244 | cpus_weight(cpu_present_map), | ||
245 | bogosum/(500000/HZ), | ||
246 | (bogosum/(5000/HZ))%100); | ||
247 | |||
248 | Dprintk("Before bogocount - setting activated=1.\n"); | ||
249 | } | ||
250 | |||
231 | #ifdef CONFIG_HOTPLUG_CPU | 251 | #ifdef CONFIG_HOTPLUG_CPU |
232 | void remove_siblinginfo(int cpu) | 252 | void remove_siblinginfo(int cpu) |
233 | { | 253 | { |