patch-2.2.18 linux/arch/alpha/kernel/smp.c
Next file: linux/arch/alpha/kernel/time.c
Previous file: linux/arch/alpha/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Sat Oct 14 00:46:52 2000
- Orig file:
v2.2.17/arch/alpha/kernel/smp.c
- Orig date:
Sun Jun 11 21:44:09 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/arch/alpha/kernel/smp.c linux/arch/alpha/kernel/smp.c
@@ -94,7 +94,7 @@
static inline void __init
smp_store_cpu_info(int cpuid)
{
- cpu_data[cpuid].loops_per_sec = loops_per_sec;
+ cpu_data[cpuid].loops_per_jiffy = loops_per_jiffy;
cpu_data[cpuid].last_asn
= (cpuid << WIDTH_HARDWARE_ASN) + ASN_FIRST_VERSION;
@@ -543,12 +543,12 @@
bogosum = 0;
for (i = 0; i < NR_CPUS; i++) {
if (cpu_present_mask & (1L << i))
- bogosum += cpu_data[i].loops_per_sec;
+ bogosum += cpu_data[i].loops_per_jiffy;
}
printk(KERN_INFO "SMP: Total of %d processors activated "
"(%lu.%02lu BogoMIPS).\n",
- cpu_count, (bogosum + 2500) / 500000,
- ((bogosum + 2500) / 5000) % 100);
+ cpu_count, (bogosum + 2500) / (500000 / HZ),
+ ((bogosum + 2500) / (5000 / HZ)) % 100);
smp_num_cpus = cpu_count;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)