aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpboot.c
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-03-19 13:25:27 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:01 -0400
commit904541e2f76bc3efe4cc9978b7adb3323ea8607e (patch)
treecd2f2d107fb324a5bb9c8a14e0b83362175d0543 /arch/x86/kernel/smpboot.c
parente1a14d0c1391627d869c0f97bb5e2382bf36d8dc (diff)
x86: allow user to impress friends.
Impressing friends is a very important thing. Do it in a separate function to make it even more explicit, and ease integration. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r--arch/x86/kernel/smpboot.c20
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
231void 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
232void remove_siblinginfo(int cpu) 252void remove_siblinginfo(int cpu)
233{ 253{